]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor testing if a particular dquot is being enforced
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:48:31 +0000 (17:48 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitd13d1f5221dbe98304dcf574cae3e2ef618bd9ab
tree46a20b5b78f52e98d19cf07acc40f83db71d9b72
parent77f9528d54b87bb3903cd226f15979030d1777d6
xfs: refactor testing if a particular dquot is being enforced

Create a small helper to test if enforcement is enabled for a
given incore dquot and replace the open-code logic testing.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_dquot.h
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_trans_dquot.c