]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: enforce one namespace per attribute
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:44 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:02 +0000 (17:01 -0700)
commit07e3a45861fac13046b740a19bf8fcd46294a0f2
treea09a5930c5ca50ab813664461514aacb917b0206
parent1bb90def4024e861df18726c787c24149838fa9d
xfs: enforce one namespace per attribute

Source kernel commit: ea0b3e814741fb64e7785b564ea619578058e0b0

Create a standardized helper function to enforce one namespace bit per
extended attribute, and refactor all the open-coded hweight logic.  This
function is not a static inline to avoid porting hassles in userspace.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_attr.c
libxfs/xfs_attr.h
libxfs/xfs_attr_leaf.c
repair/attr_repair.c