xfs: refactor quota exceeded test
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 14 Jul 2020 17:37:33 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitea0cc6fa8f89a0089c561b65b909ceab48463338
tree5a520a7b80ed5e6ef55f7d5c920e31a9c440653d
parentc8c753e19a76507a2b686d9c521d5266351c75d0
xfs: refactor quota exceeded test

Refactor the open-coded test for whether or not we're over quota.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_dquot.c