xfs: consolidate attribute value copying
authorDave Chinner <dchinner@redhat.com>
Thu, 29 Aug 2019 16:04:10 +0000 (09:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 31 Aug 2019 05:43:57 +0000 (22:43 -0700)
commit9df243a1a9e607e7cf5d20ee46edd5ec84b7e400
tree7ba879e470dceb0957ee3b29412d3c2e6d416f7c
parente3cc4554ce1b2cc43262c93ebe6d8cde780d29ee
xfs: consolidate attribute value copying

The same code is used to copy do the attribute copying in three
different places. Consolidate them into a single function in
preparation from on-demand buffer allocation.

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