diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 10:59:08 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:55:01 -0700 |
commit | de1d5d9c3c194f4d8330fff5e6526c43a80a3d0d (patch) | |
tree | 786ec362b4c2ba50202e039374ef39476444840c /fs/xfs/scrub/scrub.h | |
parent | ef1221bcd0249d035074b8f39faab255697eba5b (diff) |
xfs: move orphan files to the orphanagerepair-dirs_2021-09-17
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h index 3994fcdf5916..b092a1b67d7c 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; |