diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 9ef875e7b34c..84746a06cd58 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3477,6 +3477,8 @@ static inline bool __should_serialize_io(struct inode *inode, if (IS_NOQUOTA(inode)) return false; + if (f2fs_is_pinned_file(inode)) + return false; if (f2fs_need_compress_data(inode)) return true; if (wbc->sync_mode != WB_SYNC_ALL)