Skip to content
Commit 0a17fff6 authored by Hyeong-Jun Kim's avatar Hyeong-Jun Kim Committed by Greg Kroah-Hartman
Browse files

f2fs: compress: disallow disabling compress on non-empty compressed file



[ Upstream commit 02d58cd2 ]

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: 4c8ff709 ("f2fs: support data compression")
Signed-off-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarHyeong-Jun Kim <hj514.kim@samsung.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4ce685cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment