]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove the kuid/kgid conversion wrappers
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Apr 2023 04:26:12 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:37 +0000 (12:07 +0200)
commit860519164f1399240262a4569f79e6fa74f34cde
tree3b6b55b29733ead5da8a8aba12f2c2e8e4b613cd
parent401b7a5357a193642d2b27b5e402184b12179865
xfs: remove the kuid/kgid conversion wrappers

commit d61ff339e7702f1002c349e271a36f27222fb28a upstream.

Remove the XFS wrappers for converting from and to the kuid/kgid types.
Mostly this means switching to VFS i_{u,g}id_{read,write} helpers, but
in a few spots the calls to the conversion functions is open coded.
To match the use of sb->s_user_ns in the helpers and other file systems,
sb->s_user_ns is also used in the quota code.  The ACL code already does
the conversion in a grotty layering violation in the VFS xattr code,
so it keeps using init_user_ns for the identity mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/xfs_acl.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_itable.c
fs/xfs/xfs_linux.h
fs/xfs/xfs_qm.c