Commit 02d58cd
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: 4c8ff70 ("f2fs: support data compression")
Signed-off-by: Sungjong Seo <[email protected]>
Signed-off-by: Hyeong-Jun Kim <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>1 parent b368cc5 commit 02d58cd
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4179 | 4179 | | |
4180 | 4180 | | |
4181 | 4181 | | |
4182 | | - | |
4183 | | - | |
| 4182 | + | |
4184 | 4183 | | |
4185 | 4184 | | |
4186 | 4185 | | |
| |||
0 commit comments