From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub extended attributes X-Git-Tag: v4.15.0-rc1~143^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97ebbf282870c3f2373727ded8fb2e1a38463f29;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub extended attributes Source kernel commit: eec0482e0829eab1da1be693e524c889dc4b168c 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 Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index c783de1f2..8c972a3c4 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -520,9 +520,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)