Btrfs: try to avoid acquiring free space ctl's lock
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 13 Feb 2017 23:42:30 +0000 (15:42 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:48 +0000 (12:03 +0100)
commit0c9b36e0d72c0648d5274adf9b7a2141e1085208
tree9d1634ec3c9d3c689ad44a874e6598acc33b1b99
parent6f6b643e44ef79cbd85e69800a06326805829aa8
Btrfs: try to avoid acquiring free space ctl's lock

We don't need to take the lock if the block group has not been cached.

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/extent-tree.c