diff options
author | Hyeong-Jun Kim <hj514.kim@samsung.com> | 2021-10-27 07:16:00 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-10-28 01:32:29 +0300 |
commit | 02d58cd253d7536c412993573fc6b3b4454960eb (patch) | |
tree | f122c1f09c84804714e5f160b8cdc18c6a54b5f1 /fs/f2fs/super.c | |
parent | b368cc5e26341113453e7458f03cdfe0eeb84a40 (diff) | |
download | linux-02d58cd253d7536c412993573fc6b3b4454960eb.tar.xz |
f2fs: compress: disallow disabling compress on non-empty compressed file
Compresse file and normal file has differ in i_addr addressing,
specifically addrs per inode/block. So, we will face data loss, if we
disable the compression flag on non-empty files. Therefore we should
disallow not only enabling but disabling the compression flag on
non-empty files.
Fixes: 4c8ff7095bef ("f2fs: support data compression")
Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Hyeong-Jun Kim <hj514.kim@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
0 files changed, 0 insertions, 0 deletions