]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: remove libxfs_dir_ialloc
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:12:47 +0000 (18:12 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commitb47055a465deceb27224e841dafe0d487bfce095
tree3be1d13b3d5a7a4b028916ec51fc569ac9224163
parentfdf7f98794ac856930f26bb6bd10dacf5ad3935e
libxfs: remove libxfs_dir_ialloc

This function no longer exists in the kernel, and it's not really needed
in userspace either.  There are two users of it: repair and mkfs.
xfs_repair and xfs_db do not have useful cred and fsxattr structures so
they can call libxfs_dialloc and libxfs_icreate directly.  For mkfs
we'll move the guts of libxfs_dir_ialloc into proto.c as a creatproto
function that handles setting user/group ids, and move struct cred to
mkfs since it's now the only user.

This gets us ready to hoist the rest of the inode initialization code to
libxfs for metadata directories.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/iunlink.c
include/xfs_inode.h
libxfs/inode.c
libxfs/libxfs_api_defs.h
mkfs/proto.c
repair/phase6.c