xfs: pass the attr value to put_listent when possible
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 22 Apr 2024 16:47:53 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:00 +0000 (07:47 -0700)
commit8f4b980ee67fe53a77b70b1fdd8e15f2fe37180c
tree0c13cc6245f9068c04f4298a3cb5bebd706ce9d3
parentdaf9f884906bcfcffe26967aee9ece893fba019b
xfs: pass the attr value to put_listent when possible

Pass the attr value to put_listent when we have local xattrs or
shortform xattrs.  This will enable the GETPARENTS ioctl to use
xfs_attr_list as its backend.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_attr.h
fs/xfs/libxfs/xfs_attr_sf.h
fs/xfs/xfs_attr_list.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_xattr.c