From: Darrick J. Wong Date: Mon, 31 Jul 2017 20:08:12 +0000 (-0500) Subject: xfs: grab dquots without taking the ilock X-Git-Tag: v4.13.0-rc1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb0dc9bfdc83729dbfc323e9223212f6edf4dd60;p=thirdparty%2Fxfsprogs-dev.git xfs: grab dquots without taking the ilock Source kernel commit: 50e0bdbe9f48f98bb02eac7030d682f4716884ae Add a new dqget flag that grabs the dquot without taking the ilock. This will be used by the scrubber (which will have already grabbed the ilock) to perform basic sanity checking of the quota data. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_quota_defs.h b/libxfs/xfs_quota_defs.h index d69c77227..2834574cb 100644 --- a/libxfs/xfs_quota_defs.h +++ b/libxfs/xfs_quota_defs.h @@ -136,6 +136,8 @@ typedef uint16_t xfs_qwarncnt_t; */ #define XFS_QMOPT_INHERIT 0x1000000 +#define XFS_QMOPT_NOLOCK 0x2000000 /* don't ilock during dqget */ + /* * flags to xfs_trans_mod_dquot. */