]> git.baikalelectronics.ru Git - kernel.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)
commitc0859c576c2b40be7a59b5f7e9e9bb4587c5c51c
tree58e5f8c8f3e42cfa6cf8988f2b66a9adcfd6470e
parent525091cb905e104b6ef85d50a000d69ee02bcc14
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