summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_fs.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-10-18 06:37:45 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-27 00:38:26 +0200
commiteec0482e0829eab1da1be693e524c889dc4b168c (patch)
tree8c445deb09846f1dd4a888cd5ddb20539b23515a /fs/xfs/libxfs/xfs_fs.h
parentxfs: scrub directory freespace (diff)
downloadlinux-eec0482e0829eab1da1be693e524c889dc4b168c.tar.xz
linux-eec0482e0829eab1da1be693e524c889dc4b168c.zip
xfs: scrub extended attributes
Scrub the hash tree, keys, and values in an extended attribute structure. Refactor the attribute code to use the transaction if the caller supplied one to avoid buffer deadocks. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_fs.h')
-rw-r--r--fs/xfs/libxfs/xfs_fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h
index b16d004cf372..0834ce633518 100644
--- a/fs/xfs/libxfs/xfs_fs.h
+++ b/fs/xfs/libxfs/xfs_fs.h
@@ -499,9 +499,10 @@ struct xfs_scrub_metadata {
#define XFS_SCRUB_TYPE_BMBTA 13 /* attr fork block mapping */
#define XFS_SCRUB_TYPE_BMBTC 14 /* CoW fork block mapping */
#define XFS_SCRUB_TYPE_DIR 15 /* directory */
+#define XFS_SCRUB_TYPE_XATTR 16 /* extended attribute */
/* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR 16
+#define XFS_SCRUB_TYPE_NR 17
/* i: Repair this metadata. */
#define XFS_SCRUB_IFLAG_REPAIR (1 << 0)