]> git.baikalelectronics.ru Git - kernel.git/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)
commit5dba41bc299456035bb39fddfa41bcbbd67ad06c
tree3ef43b73df9150deff86d1fe478bab429bfac639
parentbfdeccb141af8a7eeff5339a17248ffbac80c13e
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