]> git.itanic.dy.fi Git - linux-stable/commit
xfs: remove struct xfs_attr_shortform
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Dec 2023 06:35:01 +0000 (07:35 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 29 Dec 2023 08:07:05 +0000 (13:37 +0530)
commit414147225400a0c4562ebfb0fdd40f065099ede4
treeb826699fcb76159b0313047adeeadb9c790bcd50
parent1fb4b0def7b5a5bf91ad62a112d8d3f6dc76585f
xfs: remove struct xfs_attr_shortform

sparse complains about struct xfs_attr_shortform because it embeds a
structure with a variable sized array in a variable sized array.

Given that xfs_attr_shortform is not a very useful structure, and the
dir2 equivalent has been removed a long time ago, remove it as well.

Provide a xfs_attr_sf_firstentry helper that returns the first
xfs_attr_sf_entry behind a xfs_attr_sf_hdr to replace the structure
dereference.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_attr_leaf.h
fs/xfs/libxfs/xfs_attr_sf.h
fs/xfs/libxfs/xfs_da_format.h
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_ondisk.h
fs/xfs/scrub/attr.c
fs/xfs/scrub/inode_repair.c
fs/xfs/xfs_attr_list.c