summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_iwalk.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_iwalk.h')
-rw-r--r--fs/xfs/xfs_iwalk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iwalk.h b/fs/xfs/xfs_iwalk.h
index d7a082e45cbf..bdec747ff834 100644
--- a/fs/xfs/xfs_iwalk.h
+++ b/fs/xfs/xfs_iwalk.h
@@ -31,8 +31,12 @@ int xfs_iwalk_threaded(struct xfs_mount *mp, xfs_ino_t startino,
/* Signal that we can return metadata directories. */
#define XFS_IWALK_METADIR (0x2)
+/* Don't drop inodes. */
+#define XFS_IWALK_RETAIN_INODES (0x4)
+
#define XFS_IWALK_FLAGS_ALL (XFS_IWALK_SAME_AG | \
- XFS_IWALK_METADIR)
+ XFS_IWALK_METADIR | \
+ XFS_IWALK_RETAIN_INODES)
/* Walk all inode btree records in the filesystem starting from @startino. */
typedef int (*xfs_inobt_walk_fn)(struct xfs_mount *mp, struct xfs_trans *tp,