]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: remove xfs_da_args.attr_flags
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:43 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:01 +0000 (17:01 -0700)
commitd55ab83513e5d047080fc651f9b018a5b7d89893
tree081f4025d542ebcf6dd369eb24db34e69f9da70f
parent31f958745819c6f7cd42d866bee58f952881ebc5
xfs: remove xfs_da_args.attr_flags

Source kernel commit: 54275d8496f3e4764302cebc0e9517d950ba6589

This field only ever contains XATTR_{CREATE,REPLACE}, and it only goes
as deep as xfs_attr_set.  Remove the field from the structure and
replace it with an enum specifying exactly what kind of change we want
to make to the xattr structure.  Upsert is the name that we'll give to
the flags==0 operation, because we're either updating an existing value
or inserting it, and the caller doesn't care.

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