]> asedeno.scripts.mit.edu Git - linux.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)
commit846410ccd104c7294d18e61c665bf7c0c7e6d7d1
tree4c4cead6cec2c7dc93d91a96a14426e36907d2bf
parentc0a6791667f81d9b12443f7ed1c7b4602be9e3c9
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