]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove unnecessary quota type masking
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:52:57 +0000 (17:52 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitdd830c5d6ffd36510575d94fa4b9d7e7e2a3c24d
treeba7a49f14671035387a461a2576571beb13ed919
parentdcbe42eb74093d8462bed87de12a55b91f601036
xfs: remove unnecessary quota type masking

When XFS' quota functions take a parameter for the quota type, they only
care about the three quota record types (user, group, project).
Internal state flags and whatnot should never be passed by callers and
are an error.  Now that we've moved responsibility for filtering out
internal state to the callers, we can drop the masking everywhere else.

In other words, if you call a quota function, you must only pass in
one of XFS_DQTYPE_{USER,GROUP,PROJ}.

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.h