diff options
author | Jeff Mahoney <jeffm@suse.com> | 2013-07-09 16:37:21 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 07:57:23 -0400 |
commit | ee3441b49092000402748f5345ee0a3d4c8ac04e (patch) | |
tree | 34ee8c6a2e89451eb8936f5d91d650c3bd475847 /fs/btrfs/ctree.h | |
parent | 74be9510876a66ad9826613ac8a526d26f9e7f01 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index e795bf135e80..8cc03321a368 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3175,7 +3175,7 @@ void btrfs_orphan_release_metadata(struct inode *inode); | |||
3175 | int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, | 3175 | int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, |
3176 | struct btrfs_block_rsv *rsv, | 3176 | struct btrfs_block_rsv *rsv, |
3177 | int nitems, | 3177 | int nitems, |
3178 | u64 *qgroup_reserved); | 3178 | u64 *qgroup_reserved, bool use_global_rsv); |
3179 | void btrfs_subvolume_release_metadata(struct btrfs_root *root, | 3179 | void btrfs_subvolume_release_metadata(struct btrfs_root *root, |
3180 | struct btrfs_block_rsv *rsv, | 3180 | struct btrfs_block_rsv *rsv, |
3181 | u64 qgroup_reserved); | 3181 | u64 qgroup_reserved); |