]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: switch imeta namespace operations to be relative to the parent
authorChristoph Hellwig <hch@lst.de>
Wed, 17 Jul 2024 06:42:20 +0000 (08:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Jul 2024 06:42:20 +0000 (08:42 +0200)
commit138a7bee706e73ddbd509b9f61c35777950dbf61
tree5e9201e8d6573c5d95ea03266eb916c679ef1d5b
parent0078fa1a574f3b83c8f3b16ef824ba34971cbd21
xfs: switch imeta namespace operations to be relative to the parent

Source kernel commit: a8ba89332674e0aa549507457b412927fb0fdd93

Switch the imeta lookup / create / link APIs to work on [parent inode,
pathname component] pairs instead of the multi-level xfs_imeta_path
structure.  This simplifies the code a lot, and makes the dependencies
on the parent directory (there is only one right one) more clear.

Note that the metapath code looks a bit off with this now, we might want
to try the same unlink/relink trick as we do for the leaf files there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_imeta.c
libxfs/xfs_imeta.h
libxfs/xfs_rtgroup.c
libxfs/xfs_rtgroup.h
libxfs/xfs_rtrefcount_btree.h
libxfs/xfs_rtrmap_btree.h