]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove ATTR_ALLOC and XFS_DA_OP_ALLOCVAL
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:35 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:53 +0000 (20:55 -0800)
commit48723ddd0692c9f973854ab3f1ebdcd3f6eca72b
tree98a42ea01c2ce331e14963ee257c7a6787195c78
parenta21b7ffc1c1fa0d7d4363ac7e1ad2dfb50bd8332
xfs: remove ATTR_ALLOC and XFS_DA_OP_ALLOCVAL

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