mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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 <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>
This commit is contained in:
parent
6599716de2
commit
11ad7983c2
|
|
@ -1950,7 +1950,7 @@ static vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf)
|
|||
* 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user