summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/scrub.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 10:59:08 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:03 -0800
commit44958c4f62e4a3ef41cb29ed0555161342a380e6 (patch)
tree0d8d3c37ddf6a5f8b5cc507d2bb0f6f848914c9d /fs/xfs/scrub/scrub.h
parenta11f10691dd5b792bf9b086d9ca61833418465c5 (diff)
xfs: move orphan files to the orphanagerepair-dirs_2021-12-15
If we can't find a parent for a file, move it to the orphanage. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
-rw-r--r--fs/xfs/scrub/scrub.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h
index 08c788db2c4f..b164dd094187 100644
--- a/fs/xfs/scrub/scrub.h
+++ b/fs/xfs/scrub/scrub.h
@@ -94,6 +94,10 @@ struct xfs_scrub {
/* Lock flags for @ip. */
uint ilock_flags;
+ /* The orphanage, for stashing files that have lost their parent. */
+ uint orphanage_ilock_flags;
+ struct xfs_inode *orphanage;
+
/* A temporary file on this filesystem, for staging new metadata. */
struct xfs_inode *tempip;
uint temp_ilock_flags;