mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
f2fs: prevent atomic write on pinned file
Since atomic write way was changed to out-place-update, we should prevent it on pinned files. Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
245930617c
commit
c644af1332
|
|
@ -2083,7 +2083,8 @@ static int f2fs_ioc_start_atomic_write(struct file *filp, bool truncate)
|
|||
|
||||
inode_lock(inode);
|
||||
|
||||
if (!f2fs_disable_compressed_file(inode)) {
|
||||
if (!f2fs_disable_compressed_file(inode) ||
|
||||
f2fs_is_pinned_file(inode)) {
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user