]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use the global reserve when truncating the free space cache inode
authorJosef Bacik <josef@redhat.com>
Wed, 2 Nov 2011 13:29:35 +0000 (09:29 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 08:03:50 +0000 (03:03 -0500)
commitae3dfbaf3ce91e597e2b244876b54ef476149cb2
tree366dc804d4b5d0d8c32d70cc554651efa552ba59
parent855c655fe68381270cf4d58cd21c677696dd5a09
Btrfs: use the global reserve when truncating the free space cache inode

We no longer use the orphan block rsv for holding the reservation for truncating
the inode, so instead use the global block rsv and check to make sure it has
enough space for us to truncate the space.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c