f2fs: set default compress option only when sb_has_compression
authorYangtao Li <frank.li@vivo.com>
Thu, 30 Mar 2023 16:56:48 +0000 (00:56 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 10 Apr 2023 17:58:45 +0000 (10:58 -0700)
commitc2c14ca5b1f3591ebf7f75e374ddd65c574c9d42
treeecfd456c5540fa6f64290c4ab2c498381710ead4
parentd11cef14f8146f3babd286c2cc8ca09c166295e2
f2fs: set default compress option only when sb_has_compression

If the compress feature is not enabled, there is no need to set
compress-related parameters.

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