f2fs: add compression feature check for all compress mount opt
authorYangtao Li <frank.li@vivo.com>
Sun, 19 Mar 2023 07:51:30 +0000 (15:51 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Apr 2023 20:57:29 +0000 (13:57 -0700)
commitd4998b7895ab3a590bcf85f08033166ee9502b03
treed3c8a9ce3467c8cfc016dc0af3b142837a059c4e
parentc0abbdf2b5d6e6f53e872f67c7b483977bd1a7b3
f2fs: add compression feature check for all compress mount opt

Opt_compress_chksum, Opt_compress_mode and Opt_compress_cache
lack the necessary check to see if the image supports compression,
let's add it.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c