Btrfs: use helper to get used bytes of space_info
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 13 Feb 2017 23:42:21 +0000 (15:42 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:48 +0000 (12:03 +0100)
commit4136135b080f5680fb31eda9348d1f636e4dbfb9
tree9426167b24df21a19e2a60ee5a8aea8658193015
parent0c9b36e0d72c0648d5274adf9b7a2141e1085208
Btrfs: use helper to get used bytes of space_info

This uses a helper instead of open code around used byte of space_info
everywhere.

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