diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-02-07 16:06:02 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:42 -0500 |
commit | 5d80366e9b5e56b3ffc1923b4995e83bbbf605e3 (patch) | |
tree | abf60c6bb2534f17bb40fd60819b02e7cfa64bb8 /fs/btrfs/ctree.h | |
parent | 8696c53304f16fde9368b9d5c89a5acb4a815d4c (diff) |
Btrfs: steal from global reserve if we are cleaning up orphans
Sometimes xfstest 83 will fail to remount the scratch device because we've
gotten ourselves so full that we cannot cleanup the orphan items. In this
case check to see if we're doing the orphan cleanup and if we are allow us
to steal our reservation from the global block rsv. With this patch I've
not been able to reproduce the failed mount problem. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7e2cffd2a5d8..f1cc247f3178 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1237,6 +1237,11 @@ struct seq_list { | |||
1237 | u64 seq; | 1237 | u64 seq; |
1238 | }; | 1238 | }; |
1239 | 1239 | ||
1240 | enum btrfs_orphan_cleanup_state { | ||
1241 | ORPHAN_CLEANUP_STARTED = 1, | ||
1242 | ORPHAN_CLEANUP_DONE = 2, | ||
1243 | }; | ||
1244 | |||
1240 | /* fs_info */ | 1245 | /* fs_info */ |
1241 | struct reloc_control; | 1246 | struct reloc_control; |
1242 | struct btrfs_device; | 1247 | struct btrfs_device; |