]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: simplify parsing of allocsize mount option
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Oct 2019 15:41:45 +0000 (08:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 29 Oct 2019 16:50:13 +0000 (09:50 -0700)
commit8577c4c57d0c86881de3c4ce06a09055360b4f32
tree59eb7224fd11149dc822bb659f48095dda2361df
parent3786627e1d7ac1d549436bb3a5acfb0a4ef75031
xfs: simplify parsing of allocsize mount option

Rework xfs_parseargs to fill out the default value and then parse the
option directly into the mount structure, similar to what we do for
other updates, and open code the now trivial updates based on on the
on-disk superblock directly into xfs_mountfs.

Note that this change rejects the allocsize=0 mount option that has been
documented as invalid for a long time instead of just ignoring it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c