OSDN Git Service

ubifs: Fix default compression selection in ubifs
authorGabor Juhos <juhosg@openwrt.org>
Sun, 9 Dec 2018 17:12:13 +0000 (18:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:09 +0000 (09:20 +0100)
commitc7f81d70d7aee4ce224c73cc23b0ea721ce7ed6c
treec556ff898eb4e47bcf9ce1e58413e3f738e87497
parent3331e61b23b1c7d1b62e1b882650992fc6f364b5
ubifs: Fix default compression selection in ubifs

[ Upstream commit d62e98ed1efcaa94caa004f622944afdce5f1c3c ]

When ubifs is build without the LZO compressor and no compressor is
given the creation of the default file system will fail. before
selection the LZO compressor check if it is present and if not fall back
to the zlib or none.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ubifs/sb.c