xfs: refactor the geometry structure filling function
Refactor the geometry structure filling function to use the superblock to fill the fields. While we're at it, make the function less indenty and use some whitespace to make the function easier to read. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -67,7 +67,7 @@ xfs_compat_ioc_fsgeometry_v1(
|
||||
xfs_fsop_geom_t fsgeo;
|
||||
int error;
|
||||
|
||||
error = xfs_fs_geometry(mp, &fsgeo, 3);
|
||||
error = xfs_fs_geometry(&mp->m_sb, &fsgeo, 3);
|
||||
if (error)
|
||||
return error;
|
||||
/* The 32-bit variant simply has some padding at the end */
|
||||
|
||||
Reference in New Issue
Block a user