xfs: switch xfs_attrmulti_attr_get to lazy attr buffer allocation
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:45 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:55 +0000 (20:55 -0800)
commit5680c39073611b1490a311d351d648f602aa8d13
tree0611723a0d1b60891d89c01aa202f8a689ae9a3b
parented02d13f5da896f5563b3673dd16db6c268c0f83
xfs: switch xfs_attrmulti_attr_get to lazy attr buffer allocation

Let the low-level attr code only allocate the needed buffer size
for xfs_attrmulti_attr_get instead of allocating the upper bound
at the top of the call chain.

Suggested-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c