diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-27 20:19:45 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-28 04:23:22 +0300 |
commit | 50e0bdbe9f48f98bb02eac7030d682f4716884ae (patch) | |
tree | a4f2d4b9cc5e1fad8be1f0ff3598d11a9864d326 /fs/xfs/libxfs | |
parent | 244e3dea58818e9520bf3dbaf4404a60b105bfb1 (diff) | |
download | linux-50e0bdbe9f48f98bb02eac7030d682f4716884ae.tar.xz |
xfs: grab dquots without taking the ilock
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>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_quota_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_quota_defs.h b/fs/xfs/libxfs/xfs_quota_defs.h index d69c772271cb..2834574cb6e7 100644 --- a/fs/xfs/libxfs/xfs_quota_defs.h +++ b/fs/xfs/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. */ |