]> git.itanic.dy.fi Git - linux-stable/commit
xfs: split the sunit parameter update into two parts
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Dec 2019 19:13:16 +0000 (11:13 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Dec 2019 15:53:48 +0000 (07:53 -0800)
commit4f5b1b3a8fa07dc8ecedfaf539b3deed8931a73e
tree3ef43b73df9150deff86d1fe478bab429bfac639
parent1cac233cfe71f21e069705a4930c18e48d897be6
xfs: split the sunit parameter update into two parts

If the administrator provided a sunit= mount option, we need to validate
the raw parameter, convert the mount option units (512b blocks) into the
internal unit (fs blocks), and then validate that the (now cooked)
parameter doesn't screw anything up on disk.  The incore inode geometry
computation can depend on the new sunit option, but a subsequent patch
will make validating the cooked value depends on the computed inode
geometry, so break the sunit update into two steps.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_mount.c