]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/btrfs/extent_io.c
btrfs: Evaluate io_tree in find_lock_delalloc_range()
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Fri, 21 Jun 2019 15:02:54 +0000 (10:02 -0500)
committerDavid Sterba <dsterba@suse.com>
Thu, 4 Jul 2019 15:26:17 +0000 (17:26 +0200)
commit9978059be8a1afd68bc0f7ab4c1883633ddd0312
tree952b5465038a30b0143cd2e8a4678ee5292d7110
parent67f9c2209e885c8f97215655739155c94ca9cb9c
btrfs: Evaluate io_tree in find_lock_delalloc_range()

Simplification.  No point passing the tree variable when it can be
evaluated from inode. The tests now use the io_tree from btrfs_inode as
opposed to creating one.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/tests/extent-io-tests.c