]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: remove struct xfs_attr_shortform
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2024 23:07:43 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:26 +0000 (14:06 -0700)
commit5e2372c487c24821695a692d7055c099a6c8b716
tree77634798f63aaf8638cc216421b8d6fa55357b87
parentef7e1fab372def780e8f51adaa083b4413784efa
xfs: remove struct xfs_attr_shortform

Source kernel commit: 414147225400a0c4562ebfb0fdd40f065099ede4

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>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
14 files changed:
db/attrshort.c
db/check.c
db/inode.c
db/metadump.c
libxfs/libxfs_api_defs.h
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_leaf.h
libxfs/xfs_attr_sf.h
libxfs/xfs_da_format.h
libxfs/xfs_inode_fork.c
libxfs/xfs_ondisk.h
repair/attr_repair.c
repair/dinode.c