summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorEunhee Rho <eunhee83.rho@samsung.com>2022-08-01 07:40:02 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2022-08-05 14:18:08 +0300
commitdbf8e63f48af48f3f0a069fc971c9826312dbfc1 (patch)
treec59e569877f06a9455ac802a393646c12f8b7471 /fs/f2fs
parent4a2c5b7994960fac29cf8a3f4e62855bae1b27d4 (diff)
downloadlinux-dbf8e63f48af48f3f0a069fc971c9826312dbfc1.tar.xz
f2fs: remove device type check for direct IO
To ensure serialized IOs, f2fs allows only LFS mode for zoned device. Remove redundant check for direct IO. Signed-off-by: Eunhee Rho <eunhee83.rho@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/f2fs.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index b2c7dae4740a..4dc7da8347ce 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -4502,12 +4502,7 @@ static inline bool f2fs_force_buffered_io(struct inode *inode,
/* disallow direct IO if any of devices has unaligned blksize */
if (f2fs_is_multi_device(sbi) && !sbi->aligned_blksize)
return true;
- /*
- * for blkzoned device, fallback direct IO to buffered IO, so
- * all IOs can be serialized by log-structured write.
- */
- if (f2fs_sb_has_blkzoned(sbi))
- return true;
+
if (f2fs_lfs_mode(sbi) && (rw == WRITE)) {
if (block_unaligned_IO(inode, iocb, iter))
return true;