On Wed, Jul 15, 2020 at 11:45:39PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > 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@xxxxxxxxxx> > --- > fs/xfs/xfs_dquot.h | 17 +++++++++++++++++ > fs/xfs/xfs_qm_syscalls.c | 9 ++------- > fs/xfs/xfs_trans_dquot.c | 4 +--- > 3 files changed, 20 insertions(+), 10 deletions(-) > looks ok to me. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx