xfs: use helpers to extract xattr op from opflags
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:29 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:46:53 +0000 (07:46 -0700)
commit2a2c05d013d0562076ec475a6deb0991ce1942ca
tree62e2ae31f74b91b89257e110db8f8108b7075500
parent992c3b5c3fe6f42778436649ddae2b7a2984b7aa
xfs: use helpers to extract xattr op from opflags

Create helper functions to extract the xattr op from the ondisk xattri
log item and the incore attr intent item.  These will get more use in
the patches that follow.

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