summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/trace.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:25:40 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-10-22 16:41:15 -0700
commit5ada217abe8fe47761c91a128f1ed721b0c2a43b (patch)
treeef386d49e3ade36f7dd1f963a4e7137badba9974 /fs/xfs/scrub/trace.h
parentb963e3a477e67d48ebe82463af6d601dd5c2ce45 (diff)
xfs: allow userspace to rebuild metadata structuresdefrag-freespace_2021-10-22
Add a new (superuser-only) flag to the online metadata repair ioctl to force it to rebuild structures, even if they're not broken. We will use this to move metadata structures out of the way during a free space defragmentation operation. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/trace.h')
-rw-r--r--fs/xfs/scrub/trace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/scrub/trace.h b/fs/xfs/scrub/trace.h
index 5c43578a174e..a2e6094e8c5a 100644
--- a/fs/xfs/scrub/trace.h
+++ b/fs/xfs/scrub/trace.h
@@ -111,7 +111,8 @@ TRACE_DEFINE_ENUM(XFS_SCRUB_TYPE_BARRIER);
{ XFS_SCRUB_OFLAG_WARNING, "warning" }, \
{ XFS_SCRUB_OFLAG_NO_REPAIR_NEEDED, "norepair" }, \
{ XFS_SCRUB_IFLAG_FREEZE_OK, "freeze" }, \
- { XFS_SCRUB_IFLAG_RETAIN_INODES, "icache" }
+ { XFS_SCRUB_IFLAG_RETAIN_INODES, "icache" }, \
+ { XFS_SCRUB_IFLAG_FORCE_REBUILD, "rebuild" }
DECLARE_EVENT_CLASS(xchk_class,
TP_PROTO(struct xfs_inode *ip, struct xfs_scrub_metadata *sm,