Commit b2cf5a1f authored by Daeho Jeong's avatar Daeho Jeong Committed by Jaegeuk Kim

f2fs: allow direct io of pinned files for zoned storage

Since the allocation happens in conventional LU for zoned storage, we
can allow direct io for that.
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 3fdd89b4
...@@ -833,7 +833,8 @@ static bool f2fs_force_buffered_io(struct inode *inode, int rw) ...@@ -833,7 +833,8 @@ static bool f2fs_force_buffered_io(struct inode *inode, int rw)
* for blkzoned device, fallback direct IO to buffered IO, so * for blkzoned device, fallback direct IO to buffered IO, so
* all IOs can be serialized by log-structured write. * all IOs can be serialized by log-structured write.
*/ */
if (f2fs_sb_has_blkzoned(sbi) && (rw == WRITE)) if (f2fs_sb_has_blkzoned(sbi) && (rw == WRITE) &&
!f2fs_is_pinned_file(inode))
return true; return true;
if (is_sbi_flag_set(sbi, SBI_CP_DISABLED)) if (is_sbi_flag_set(sbi, SBI_CP_DISABLED))
return true; return true;
......
Markdown is supported
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