From: Filipe Manana Date: Tue, 8 Jul 2025 15:23:02 +0000 (+0100) Subject: btrfs: use variable for io_tree when clearing range in btrfs_page_mkwrite() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=11ad7983c2eeb71a0b25b5f7aca9831fbed9ea57;p=users%2Fjedix%2Flinux-maple.git btrfs: use variable for io_tree when clearing range in btrfs_page_mkwrite() 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 Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index cb07274d4126..e11b1733e3ae 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -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);