]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: update the global reserve if it is empty
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 13 May 2013 13:55:12 +0000 (13:55 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:26 +0000 (21:40 -0400)
commitb8dee21bb8783ba833fd9c6138641a7e5f08dd64
tree97954bb46f3bbc62e85edd016bc25f6f9e48f89f
parent4b2ecc2aceb833a1a0ad26291bf0acde7bc43f37
Btrfs: update the global reserve if it is empty

Before applying this patch, we reserved the space for the global reserve
by the minimum unit if we found it is empty, it was unreasonable and
inefficient, because if the global reserve space was depleted, it implied
that the size of the global reserve was too small. In this case, we shoud
update the global reserve and fill it.

Cc: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c