]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: pass a transaction context through listxattr
authorDarrick J. Wong <djwong@kernel.org>
Thu, 8 Aug 2024 16:38:47 +0000 (09:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 8 Aug 2024 16:38:47 +0000 (09:38 -0700)
commit6215e8d357ca8489dec5c60f171d9be826b43609
treed67d08ca08f5732ec48bf342797991f1be951400
parenta1ae399a5eaabf29a39b7135b4d54894cd44c8a8
libxfs: pass a transaction context through listxattr

Pass a transaction context so that a new caller can walk the attr names
and query the values all in one go without deadlocking on nested buffer
access.

While we're at it, make the existing xfs_repair callers try to use
empty transactions so that we don't deadlock on cycles in the xattr
structure.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Dave Chinner <dchinner@redhat.com>
libxfs/listxattr.c
libxfs/listxattr.h
repair/pptr.c