]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: introduce FI_COMPRESS_RELEASED instead of using IMMUTABLE bit
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 May 2021 18:39:35 +0000 (11:39 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 26 May 2021 14:01:05 +0000 (07:01 -0700)
commit61ae61f4437b214a9b284b8318ba21a8f0a2f1f7
tree32d6f2326cca5b62dd039664986d6505c44c7d6c
parent39c036a98d52c88eba83ef3ca5bb854a39bcf441
f2fs: introduce FI_COMPRESS_RELEASED instead of using IMMUTABLE bit

Once we release compressed blocks, we used to set IMMUTABLE bit. But it turned
out it disallows every fs operations which we don't need for compression.

Let's just prevent writing data only.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
include/linux/f2fs_fs.h