]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75a1f11730a033b45e8f2a3d04826949c977847f
tree3a69124d9fdf44c58d7b30c40eaf5eb0e3dfae69
parentec613d89b0b0e8d6c0b067c68013d04ca35074e0
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