]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/xfs/xfs_mount.c
xfs: precalculate default inode attribute offset
authorDave Chinner <dchinner@redhat.com>
Tue, 6 Apr 2021 14:03:24 +0000 (07:03 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:07 +0000 (14:37 -0700)
commitb2941046ea85d2cd94b485831bf03402f34f4060
tree1c930385ea564d42a3e9353a1d4b7d3076da37a3
parent683ec9ba887d096a6cbd9a5778be9400efe6468c
xfs: precalculate default inode attribute offset

Default attr fork offset is based on inode size, so is a fixed
geometry parameter of the inode. Move it to the xfs_ino_geometry
structure and stop calculating it on every call to
xfs_default_attroffset().

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Tested-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_shared.h
fs/xfs/xfs_mount.c