]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: merge xfs_attr_remove into xfs_attr_set
authorChristoph Hellwig <hch@lst.de>
Wed, 29 Apr 2020 20:08:34 +0000 (16:08 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 29 Apr 2020 20:08:34 +0000 (16:08 -0400)
commited7ea3baf3d59f0c93a179eee685d0db916ecd93
treee7f42718ad28e735f78cda9a58de44240e766e7d
parent612b22948ea59d531a02d26dffb18751f7b2c4ed
xfs: merge xfs_attr_remove into xfs_attr_set

Source kernel commit: 0eb81a5f5c34429f0d86329260b3b07e2d4c5e22

The Linux xattr and acl APIs use a single call for set and remove.
Modify the high-level XFS API to match that and let xfs_attr_set handle
removing attributes as well.  With a little bit of reordering this
removes a lot of code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/attrset.c
libxfs/libxfs_api_defs.h
libxfs/xfs_attr.c
libxfs/xfs_attr.h