Re: [PATCH] Btrfs: pass delayed_refs directly to btrfs_find_delayed_ref_head

2017-02-02 Thread David Sterba
On Mon, Jan 30, 2017 at 12:24:37PM -0800, Liu Bo wrote: > 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

[PATCH] Btrfs: pass delayed_refs directly to btrfs_find_delayed_ref_head

2017-01-30 Thread Liu Bo
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 --- fs/btrfs/backref.c | 2 +-