Josef Bacik
c4e54a6571
btrfs: replace clearing extent buffer dirty bit with btrfs_clean_block
...
Now that we're passing in the trans into btrfs_clean_tree_block, we can
easily roll in the handling of the !trans case and replace all
occurrences of
if (test_and_clear_bit(EXTENT_BUFFER_DIRTY, &eb->bflags))
clear_extent_buffer_dirty(eb);
with
btrfs_tree_lock(eb);
btrfs_clean_tree_block(eb);
btrfs_tree_unlock(eb);
We need the lock because if we are actually dirty we need to make sure
we aren't racing with anything that's starting writeout currently. This
also makes sure that we're accounting fs_info->dirty_metadata_bytes
appropriately.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-02-15 19:38:53 +01:00
..
2022-12-05 18:00:54 +01:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:58 +01:00
2022-12-12 20:47:51 -08:00
2022-12-12 20:47:51 -08:00
2022-05-16 17:03:15 +02:00
2022-07-25 17:45:36 +02:00
2023-02-15 19:38:50 +01:00
2022-12-05 18:00:50 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2023-02-13 17:50:34 +01:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:48 +01:00
2022-12-05 18:00:48 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:57 +01:00
2022-05-16 17:03:12 +02:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2022-12-12 18:46:39 -08:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:45 +01:00
2022-12-05 18:00:44 +01:00
2022-12-05 18:00:53 +01:00
2022-12-05 18:00:43 +01:00
2023-02-13 17:50:33 +01:00
2023-02-13 17:50:33 +01:00
2022-12-05 18:00:57 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-02-15 19:38:50 +01:00
2020-12-08 15:54:02 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:41 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:51 +01:00
2022-12-05 18:00:56 +01:00
2022-12-05 18:00:56 +01:00
2023-02-15 19:38:50 +01:00
2023-02-15 19:38:51 +01:00
2023-02-15 19:38:53 +01:00
2023-02-13 17:50:34 +01:00
2023-02-15 19:38:52 +01:00
2023-02-15 19:38:52 +01:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:56 +01:00
2022-12-05 18:00:55 +01:00
2022-12-05 18:00:45 +01:00
2023-02-15 19:38:53 +01:00
2019-11-18 17:51:51 +01:00
2023-02-13 17:50:35 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:43 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:46 +01:00
2022-01-20 08:52:55 +02:00
2022-12-05 18:00:42 +01:00
2022-12-05 18:00:44 +01:00
2023-02-15 19:38:50 +01:00
2023-02-15 19:38:50 +01:00
2023-02-13 17:50:34 +01:00
2023-02-13 17:50:35 +01:00
2023-02-13 17:50:33 +01:00
2023-02-13 17:50:33 +01:00
2022-12-05 18:00:48 +01:00
2023-02-13 17:50:34 +01:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:57 +01:00
2021-01-07 17:25:05 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:40 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:43 +01:00
2023-02-15 19:38:50 +01:00
2023-02-15 19:38:50 +01:00
2022-12-05 18:00:59 +01:00
2022-12-05 18:00:42 +01:00
2022-12-05 18:00:53 +01:00
2020-03-23 17:01:54 +01:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:44 +01:00
2023-02-15 19:38:50 +01:00
2022-12-05 18:00:47 +01:00
2023-02-15 19:38:50 +01:00
2022-12-05 18:00:41 +01:00
2023-01-11 20:04:25 +01:00
2022-12-05 18:00:44 +01:00
2022-12-05 18:00:41 +01:00
2022-05-16 17:03:11 +02:00
2023-02-15 19:38:50 +01:00
2022-12-05 18:00:47 +01:00
2023-02-13 17:50:35 +01:00
2023-02-13 17:50:35 +01:00
2023-02-13 17:50:35 +01:00
2023-02-13 17:50:33 +01:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:57 +01:00
2023-02-15 19:38:53 +01:00
2023-02-13 17:50:34 +01:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:48 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2023-02-15 19:38:52 +01:00
2023-02-15 19:38:52 +01:00
2022-12-05 18:00:46 +01:00
2023-01-25 20:11:08 +01:00
2023-02-15 19:38:53 +01:00
2023-02-15 19:38:53 +01:00
2022-12-05 18:00:55 +01:00