]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/btrfs/extent-tree.c
Btrfs: pass delayed_refs directly to btrfs_find_delayed_ref_head
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 30 Jan 2017 20:24:37 +0000 (12:24 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:59 +0000 (15:50 +0100)
commitf72ad18e996338a8033aeb981e645f8dbf4e22c1
treee1f9d0f9937fe7ee3212918aa421f11159b2cc6f
parentd07b85284f83dee7955cb43dc66a37542a725c12
Btrfs: pass delayed_refs directly to btrfs_find_delayed_ref_head

All we need is @delayed_refs, all callers have get it ahead of calling
btrfs_find_delayed_ref_head since lock needs to be acquired firstly,
there is no reason to deference it again inside the function.

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/backref.c
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c