Btrfs: pick up the code for the item number calculation in flush_space()
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 4 Nov 2013 15:13:22 +0000 (23:13 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:13:23 +0000 (22:13 -0500)
commit18cd8ea6df32e72548a4b055cba54d1a898c81e5
tree7a3796ca5a384b2cff5900e0972d31d0af5a5b24
parent38c135af8e22baf2ef3ebf9b213e398997a90946
Btrfs: pick up the code for the item number calculation in flush_space()

This patch picked up the code that was used to calculate the number of
the items for which we need reserve space, and we will use it in the next
patch.

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