xfs: refactor inode geometry setup routines
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Jun 2019 18:19:35 +0000 (11:19 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Jun 2019 15:37:40 +0000 (08:37 -0700)
commit494dba7b276e12bc3f6ff2b9b584b6e9f693af45
tree77b3aaafda4a18bc74fef64845c6daa4cb218a4b
parentef325959993edd53e3ce7c818b18f776ac0740a6
xfs: refactor inode geometry setup routines

Migrate all of the inode geometry setup code from xfs_mount.c into a
single libxfs function that we can share with xfsprogs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc.h
fs/xfs/libxfs/xfs_sb.c
fs/xfs/xfs_mount.c