]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid redundant checks when options is empty
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)
commita78d6a900f2dd6026991527c0f1056d440524fc8
tree4c4cead6cec2c7dc93d91a96a14426e36907d2bf
parenta8ef0b2d2afb53d9460e9ac7f71a87073746dbdf
xfs: avoid redundant checks when options is empty

When options passed to xfs_parseargs() is NULL the checks performed
after taking the branch are made with the initial values of dsunit,
dswidth and iosizelog. But all the checks do nothing in this case
so return immediately instead.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-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_super.c