xfs: grab dquots without taking the ilock
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Jun 2017 17:19:45 +0000 (10:19 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Jun 2017 01:23:22 +0000 (18:23 -0700)
commit50e0bdbe9f48f98bb02eac7030d682f4716884ae
treea4f2d4b9cc5e1fad8be1f0ff3598d11a9864d326
parent244e3dea58818e9520bf3dbaf4404a60b105bfb1
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>
fs/xfs/libxfs/xfs_quota_defs.h
fs/xfs/xfs_dquot.c