]> git.itanic.dy.fi Git - linux-stable/commit
xfs: make if_data a void pointer
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Dec 2023 06:34:55 +0000 (07:34 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 29 Dec 2023 08:07:03 +0000 (13:37 +0530)
commit6e145f943bd86be47e54101fa5939f9ed0cb73e5
tree41ed6b10fa716cbf10981949fa1220abd6a3ad57
parente1ead237407a7f42957f6108a95cf093ce6c2c5d
xfs: make if_data a void pointer

The xfs_ifork structure currently has a union of the if_root void pointer
and the if_data char pointer.  In either case it is an opaque pointer
that depends on the fork format.  Replace the union with a single if_data
void pointer as that is what almost all callers want.  Only the symlink
NULL termination code in xfs_init_local_fork actually needs a new local
variable now.

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>
18 files changed:
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2_block.c
fs/xfs/libxfs/xfs_dir2_sf.c
fs/xfs/libxfs/xfs_iext_tree.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/libxfs/xfs_symlink_remote.c
fs/xfs/scrub/attr.c
fs/xfs/scrub/readdir.c
fs/xfs/scrub/symlink.c
fs/xfs/xfs_attr_list.c
fs/xfs/xfs_dir2_readdir.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_symlink.c