xfs: convert xfs_fs_geometry to use mount feature checks
authorDave Chinner <dchinner@redhat.com>
Thu, 19 Aug 2021 01:46:54 +0000 (18:46 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 17:07:13 +0000 (10:07 -0700)
commit03288b19093b9bcff72f0d5f90c578daf053f759
tree3ef7eeb3757024a37645bd6af563db9ea4265008
parent75c8c50fa16a23f8ac89ea74834ae8ddd1558d75
xfs: convert xfs_fs_geometry to use mount feature checks

Reporting filesystem features to userspace is currently superblock
based. Now we have a general mount-based feature infrastructure,
switch to using the xfs_mount rather than the superblock directly.

This reduces the size of the function by over 300 bytes.

$ size -t fs/xfs/built-in.a
text    data     bss     dec     hex filename
before 1127855  311352     484 1439691  15f7cb (TOTALS)
after 1127535  311352     484 1439371  15f68b (TOTALS)

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_sb.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl32.c