xfs: remove xfs_qm_vop_chown_reserve
authorDarrick J. Wong <djwong@kernel.org>
Mon, 1 Feb 2021 18:38:51 +0000 (10:38 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commit5c615f0feb9a559abd08da0842d6fcfee105b7e3
tree3a69124d9fdf44c58d7b30c40eaf5eb0e3dfae69
parent7317a03df703f7cdae3ae9e9635a0ef45849fe09
xfs: remove xfs_qm_vop_chown_reserve

Now that the only caller of this function is xfs_trans_alloc_ichange,
just open-code the meat of _chown_reserve in that caller.  Drop the
(redundant) [ugp]id checks because xfs has a 1:1 relationship between
quota ids and incore dquots.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_qm.c
fs/xfs/xfs_quota.h
fs/xfs/xfs_trans.c