xfs: make attr removal an explicit operation
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:22 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:46:51 +0000 (07:46 -0700)
commitc27411d4c640037d70e2fa5751616e175e52ca5e
treedd25c9f1b8a510a12c98f9ceb2611d7204947cd5
parent54275d8496f3e4764302cebc0e9517d950ba6589
xfs: make attr removal an explicit operation

Parent pointers match attrs on name+value, unlike everything else which
matches on only the name.  Therefore, we cannot keep using the heuristic
that !value means remove.  Make this an explicit operation code.

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