Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f2fs: compress: fix to avoid redundant compress extension
[ Upstream commit 7e1b150 ] With below script, redundant compress extension will be parsed and added by parse_options(), because parse_options() doesn't check whether the extension is existed or not, fix it. 1. mount -t f2fs -o compress_extension=so /dev/vdb /mnt/f2fs 2. mount -t f2fs -o remount,compress_extension=so /mnt/f2fs 3. mount|grep f2fs /dev/vdb on /mnt/f2fs type f2fs (...,compress_extension=so,compress_extension=so,...) Fixes: 4c8ff70 ("f2fs: support data compression") Fixes: 151b198 ("f2fs: compress: add nocompress extensions support") Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information