]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't use global block reservation for inode cache truncation
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 13 May 2013 13:55:09 +0000 (13:55 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:22 +0000 (21:40 -0400)
commitc8198f769d962ff4b9e6d75aeb09b79aed704bfc
treec2a5556859fd55642a6bc1728f62c1da11926c3b
parent27625fad56caa6d739c83489bfda7a38a42cac5a
Btrfs: don't use global block reservation for inode cache truncation

It is very likely that there are lots of subvolumes/snapshots in the filesystem,
so if we use global block reservation to do inode cache truncation, we may hog
all the free space that is reserved in global rsv. So it is better that we do
the free space reservation for inode cache truncation by ourselves.

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
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/inode-map.c
fs/btrfs/relocation.c