Re: [PATCH 03/11] xfs: refactor testing if a particular dquot is being enforced

Dave Chinner
2020-07-16T23:47:44Z

On Wed, Jul 15, 2020 at 11:45:39PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> 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>
> ---
> 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@redhat.com>

--
Dave Chinner
david@fromorbit.com