diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-12-18 13:33:50 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-01-13 14:53:19 +0100 |
commit | 7caa86c44b81c177f51715ea89cfcc0c4bd85622 (patch) | |
tree | dbd1ada79a9753b7fb93641932b468edeb7cbff8 /fs/btrfs | |
parent | btrfs: delayed-inode: remove unnecessary call to btrfs_mark_buffer_dirty() (diff) | |
download | linux-7caa86c44b81c177f51715ea89cfcc0c4bd85622.tar.xz linux-7caa86c44b81c177f51715ea89cfcc0c4bd85622.zip |
btrfs: dev-replace: remove unnecessary call to btrfs_mark_buffer_dirty()
The call to btrfs_mark_buffer_dirty() at btrfs_run_dev_replace() is not
necessary as we have a path setup for writing with btrfs_search_slot()
having a 'cow' argument set to 1.
This just makes the code more verbose, confusing and add a little extra
overhead and well as increase the module's text size, so remove it.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/dev-replace.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index ac8e97ed13f7..f86fbea0b3de 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -440,9 +440,6 @@ int btrfs_run_dev_replace(struct btrfs_trans_handle *trans) dev_replace->cursor_right); dev_replace->item_needs_writeback = 0; up_write(&dev_replace->rwsem); - - btrfs_mark_buffer_dirty(trans, eb); - out: btrfs_free_path(path); |