summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLiu Bo2017-01-30 21:25:28 +0100
committerDavid Sterba2017-02-14 15:51:00 +0100
commite4c3b2dcd1449def1229efb138da7cb28c796c71 (patch)
treea969e93a86cd12a9c81c99b474b923a314ecbfd7 /fs/btrfs/ctree.h
parentBtrfs: pass delayed_refs directly to btrfs_find_delayed_ref_head (diff)
downloadkernel-qcow2-linux-e4c3b2dcd1449def1229efb138da7cb28c796c71.tar.gz
kernel-qcow2-linux-e4c3b2dcd1449def1229efb138da7cb28c796c71.tar.xz
kernel-qcow2-linux-e4c3b2dcd1449def1229efb138da7cb28c796c71.zip
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 56b8595eacbb..1692ebb05955 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2584,8 +2584,7 @@ int btrfs_pin_extent_for_log_replay(struct btrfs_fs_info *fs_info,
u64 bytenr, u64 num_bytes);
int btrfs_exclude_logged_extents(struct btrfs_fs_info *fs_info,
struct extent_buffer *eb);
-int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
- struct btrfs_root *root,
+int btrfs_cross_ref_exist(struct btrfs_root *root,
u64 objectid, u64 offset, u64 bytenr);
struct btrfs_block_group_cache *btrfs_lookup_block_group(
struct btrfs_fs_info *info,