]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor quota type testing
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:50:57 +0000 (17:50 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitfa4b837905cdf1644135cbd3d4cce7fddcc99bcf
tree5ffd8813539425f6db2b8bc83e8ba0350bbd3ef2
parent35163c0ff3aee2ac19356f4547f8a5a807ab33d4
xfs: refactor quota type testing

Certain functions can only act upon one quota type, so refactor those
functions to use switch statements, in keeping with all the other high
level xfs quota api calls.

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.c
fs/xfs/xfs_trans_dquot.c