]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 30 Jan 2017 20:25:28 +0000 (12:25 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:51:00 +0000 (15:51 +0100)
commit25be1c99c6a576b98a350f2c64501f3db279f0c6
treea969e93a86cd12a9c81c99b474b923a314ecbfd7
parentac5ad381bd9d35a3847e91dbb5818a27203f0a2c
Btrfs: kill trans in run_delalloc_nocow and btrfs_cross_ref_exist

run_delalloc_nocow has used trans in two places where they don't
actually need @trans.

For btrfs_lookup_file_extent, we search for file extents without COWing
anything, and for btrfs_cross_ref_exist, the only place where we need
@trans is deferencing it in order to get running_transaction which we
could easily get from the global fs_info.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c