OSDN Git Service

xfs: refactor xfs_parseags()
authorIan Kent <raven@themaw.net>
Mon, 4 Nov 2019 21:58:44 +0000 (13:58 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 16:28:26 +0000 (08:28 -0800)
commit48a06e1b5773229caf13e6cc35d73cec2d2f6519
tree3f421396ad2267a7b23db2883b219b42a7c1df58
parent846410ccd104c7294d18e61c665bf7c0c7e6d7d1
xfs: refactor xfs_parseags()

Refactor xfs_parseags(), move the entire token case block to a separate
function in an attempt to highlight the code that actually changes in
converting to use the new mount api.

Also change the break in the switch to a return in the factored out
xfs_fc_parse_param() function.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_super.c