ext4: do not use stripe_width if it is not set
authorJan Kara <jack@suse.cz>
Sat, 7 Oct 2017 22:36:49 +0000 (22:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 09:08:34 +0000 (10:08 +0100)
commit16d65c0c01815f45e3ff5bd20dcabfc808dee597
tree4c1f86064d5bb0c790cc12bbc2bf8d6c43110799
parent0e9deca480c30d78c0b922bff9abe2f81284d8fc
ext4: do not use stripe_width if it is not set

[ Upstream commit 5469d7c3087ecaf760f54b447f11af6061b7c897 ]

Avoid using stripe_width for sbi->s_stripe value if it is not actually
set. It prevents using the stride for sbi->s_stripe.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c