]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: use variable for io_tree when clearing range in btrfs_page_mkwrite()
authorFilipe Manana <fdmanana@suse.com>
Tue, 8 Jul 2025 15:23:02 +0000 (16:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:09:22 +0000 (00:09 +0200)
We have the inode's io_tree already stored in a local variable, so use it
instead of grabbing it again in the call to btrfs_clear_extent_bit().

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c

index cb07274d4126ace9c9de5badaf93030ca7be952d..e11b1733e3aefcfe8b784d5eba0c26f72857773b 100644 (file)
@@ -1950,7 +1950,7 @@ again:
         * clear any delalloc bits within this page range since we have to
         * reserve data&meta space before lock_page() (see above comments).
         */
-       btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end,
+       btrfs_clear_extent_bit(io_tree, page_start, end,
                               EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING |
                               EXTENT_DEFRAG, &cached_state);