Skip to content
Commit 278a6253 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: fix to relocate check condition in f2fs_fallocate()



compress and pinfile flag should be checked after inode lock held to
avoid race condition, fix it.

Fixes: 4c8ff709 ("f2fs: support data compression")
Fixes: 5fed0be8 ("f2fs: do not allow partial truncation on pinned file")
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent bd9ae4ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment