]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: remove ATTR_ALLOC and XFS_DA_OP_ALLOCVAL
authorChristoph Hellwig <hch@lst.de>
Fri, 1 May 2020 21:01:32 +0000 (17:01 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:01:32 +0000 (17:01 -0400)
commit8be2ffd08d22fd9ad5d91b1e2d9da5d8eeac63ed
treedba477616787d4ca7ed79a062bc3002a2b0b349f
parentc1a80a3b6cb7b3f2e35f3a36cc62f1fd280d264d
xfs: remove ATTR_ALLOC and XFS_DA_OP_ALLOCVAL

Source kernel commit: d49db18b247d8e7e16f2178cd713f4621d1d7ade

Use a NULL args->value as the indicator to lazily allocate a buffer
instead, and let the caller always free args->value instead of
duplicating the cleanup.

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>
libxfs/xfs_attr.c
libxfs/xfs_attr.h
libxfs/xfs_attr_leaf.c
libxfs/xfs_da_btree.h