Skip to content

Commit 27a98eb

Browse files
fdmananakdave
authored andcommitted
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 <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 0deab3f commit 27a98eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ static vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf)
19501950
* clear any delalloc bits within this page range since we have to
19511951
* reserve data&meta space before lock_page() (see above comments).
19521952
*/
1953-
btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end,
1953+
btrfs_clear_extent_bit(io_tree, page_start, end,
19541954
EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING |
19551955
EXTENT_DEFRAG, &cached_state);
19561956

0 commit comments

Comments
 (0)