Filipe Manana
ecb54277cb
btrfs: fix uninitialized return value from btrfs_reclaim_sweep()
...
The return variable 'ret' at btrfs_reclaim_sweep() is never assigned if
none of the space infos is reclaimable (for example if periodic reclaim
is disabled, which is the default), so we return an undefined value.
This can be fixed my making btrfs_reclaim_sweep() not return any value
as well as do_reclaim_sweep() because:
1) do_reclaim_sweep() always returns 0, so we can make it return void;
2) The only caller of btrfs_reclaim_sweep() (btrfs_reclaim_bgs()) doesn't
care about its return value, and in its context there's nothing to do
about any errors anyway.
Therefore remove the return value from btrfs_reclaim_sweep() and
do_reclaim_sweep().
Fixes: e4ca3932ae90 ("btrfs: periodic block_group reclaim")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2024-08-27 16:42:09 +02:00
..
2024-07-25 23:54:06 +02:00
2024-03-04 16:24:46 +01:00
2024-07-11 15:33:28 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-05-07 21:31:06 +02:00
2024-03-04 16:24:53 +01:00
2024-08-27 01:34:08 +02:00
2024-03-04 16:24:49 +01:00
2024-07-29 19:21:19 +02:00
2024-07-11 15:33:28 +02:00
2024-05-07 21:31:06 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:29 +02:00
2024-07-11 16:32:22 +02:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:52:25 +02:00
2024-07-29 19:21:22 +02:00
2024-07-11 15:52:25 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:33:28 +02:00
2024-08-13 13:42:26 +02:00
2024-08-13 13:42:26 +02:00
2024-07-11 15:33:19 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:22 +02:00
2024-07-29 19:21:22 +02:00
2024-07-11 15:33:29 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:25 +02:00
2024-07-17 12:38:04 -07:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:25 +02:00
2024-03-04 16:24:49 +01:00
2024-08-13 15:36:57 +02:00
2024-07-11 15:52:25 +02:00
2024-08-13 13:43:28 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:26 +02:00
2024-03-04 16:24:49 +01:00
2024-08-13 13:42:26 +02:00
2024-07-11 15:33:26 +02:00
2024-08-26 16:58:13 +02:00
2024-07-11 15:33:20 +02:00
2024-07-11 15:33:29 +02:00
2024-05-07 21:31:03 +02:00
2024-08-02 22:32:40 +02:00
2024-07-11 15:33:29 +02:00
2024-08-15 20:35:56 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:26 +02:00
2024-03-04 16:24:49 +01:00
2023-02-13 17:50:35 +01:00
2024-07-19 14:34:52 -07:00
2024-07-11 15:33:27 +02:00
2024-03-04 16:24:49 +01:00
2024-08-15 20:35:44 +02:00
2024-07-17 12:38:04 -07:00
2024-07-11 15:33:22 +02:00
2023-10-12 16:44:05 +02:00
2024-05-07 21:31:06 +02:00
2024-07-11 15:33:22 +02:00
2023-12-15 23:00:04 +01:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:52:25 +02:00
2024-07-11 15:33:29 +02:00
2024-07-11 15:33:29 +02:00
2023-12-15 20:27:02 +01:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:33:28 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-08-02 22:44:27 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:29 +02:00
2024-07-11 15:33:29 +02:00
2024-08-25 19:15:34 +02:00
2024-07-11 15:33:27 +02:00
2024-07-11 15:33:30 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:33:28 +02:00
2024-03-04 16:24:49 +01:00
2024-07-02 19:14:57 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:18 +02:00
2024-03-04 16:24:49 +01:00
2024-07-21 17:15:46 -07:00
2024-03-04 16:24:49 +01:00
2024-05-07 21:31:06 +02:00
2024-04-02 19:18:23 +02:00
2024-08-01 17:15:07 +02:00
2024-03-04 16:24:49 +01:00
2024-08-15 20:35:32 +02:00
2024-07-11 15:33:28 +02:00
2024-08-27 16:42:09 +02:00
2024-08-27 16:42:09 +02:00
2024-07-11 15:33:28 +02:00
2024-07-11 15:33:22 +02:00
2024-08-16 21:22:39 +02:00
2024-07-19 17:20:23 +02:00
2024-07-11 15:33:30 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:52:25 +02:00
2024-07-11 15:33:28 +02:00
2024-08-15 20:35:52 +02:00
2024-05-02 22:11:13 +02:00
2024-07-11 15:33:25 +02:00
2024-07-11 15:33:24 +02:00
2024-05-07 21:31:06 +02:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:26 +02:00
2024-07-11 15:33:26 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:22 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:49 +01:00
2024-07-11 15:33:27 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:33:29 +02:00
2024-07-11 15:33:22 +02:00
2024-07-11 15:52:25 +02:00
2024-07-19 17:20:23 +02:00
2024-07-19 17:20:23 +02:00
2024-07-11 15:52:25 +02:00