btrfs: divide btrfs_update_reserved_bytes() into two functions
authorWang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Mon, 25 Jul 2016 07:51:39 +0000 (15:51 +0800)
committerChris Mason <clm@fb.com>
Thu, 25 Aug 2016 10:58:25 +0000 (03:58 -0700)
commit4824f1f412f75e9f84b9cecbde828e8f4699f82d
treeba667aafa943e5db7858aadca331d4d08ba0feee
parentdcb40c196fc85c6dfb28456480e5a882e26f567d
btrfs: divide btrfs_update_reserved_bytes() into two functions

This patch divides btrfs_update_reserved_bytes() into
btrfs_add_reserved_bytes() and btrfs_free_reserved_bytes(), and
next patch will extend btrfs_add_reserved_bytes()to fix some
false ENOSPC error, please see later patch for detailed info.

Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c