Btrfs: Abstract similar code for btrfs_block_rsv_add{, _noflush}
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 11 Nov 2011 01:45:05 +0000 (20:45 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Nov 2011 01:45:05 +0000 (20:45 -0500)
commit61b520a9d0083b9b361638e456af45fd75150c87
tree9545d5f0a2e606bef5702437a7c4c3eca9f12db4
parent3254c87618354e58fa2a7b375c6664f567480c33
Btrfs: Abstract similar code for btrfs_block_rsv_add{, _noflush}

btrfs_block_rsv_add{, _noflush}() have similar code, so abstract that code.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c