diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-07-31 15:08:12 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2017-07-31 15:08:12 -0500 |
commit | cb0dc9bfdc83729dbfc323e9223212f6edf4dd60 (patch) | |
tree | ad4ac4da50db226933e3faee74451a45aba177b9 | |
parent | e2a190ddf993a045dd596bd2e3a7cf5ea87b2bfe (diff) | |
download | xfsprogs-dev-cb0dc9bfdc83729dbfc323e9223212f6edf4dd60.tar.gz |
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 <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | libxfs/xfs_quota_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libxfs/xfs_quota_defs.h b/libxfs/xfs_quota_defs.h index d69c772271..2834574cb6 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. */ |