]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fall back to global reservation when removing subvolumes
authorJeff Mahoney <jeffm@suse.com>
Tue, 9 Jul 2013 20:37:21 +0000 (16:37 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 11:57:23 +0000 (07:57 -0400)
commit3ed855dd38adcc19ea0d403f1ba04e7f28cb1d53
tree34ee8c6a2e89451eb8936f5d91d650c3bd475847
parentfcf943ea07d17fd1b43851690153a768c2559a6a
btrfs: fall back to global reservation when removing subvolumes

I recently did some ENOSPC testing that involved filling the disk
while create and removing snapshots in a loop. During the test cycle,
I ran into an ENOSPC when trying to remove a snapshot, leaving the fs
stuck in ENOSPC even after a umount/mount cycle.

This patch allow subvolume removal to fall back onto the global
block reservation in order to succeed when it would have failed
otherwise.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c