]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: fetch dquots directly during quotacheck
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 May 2018 22:30:22 +0000 (15:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 10 May 2018 15:56:48 +0000 (08:56 -0700)
commit0fcef1270f309df142575216383a3533779127f3
tree58e5f8c8f3e42cfa6cf8988f2b66a9adcfd6470e
parent4882c19d2a77c4d3d20ebcb40531ea9812f4cbba
xfs: fetch dquots directly during quotacheck

Quotacheck only runs during mount, which means that there are no other
processes in the system that could be doing chown or chproj.  Therefore
there's no potential for racing to attach dquots to the inode so we can
drop all the ILOCK and race detection bits from quotacheck.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_qm.c