]> git.baikalelectronics.ru Git - kernel.git/commitdiff
f2fs: remove device type check for direct IO
authorEunhee Rho <eunhee83.rho@samsung.com>
Mon, 1 Aug 2022 04:40:02 +0000 (13:40 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Aug 2022 11:18:08 +0000 (04:18 -0700)
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>
fs/f2fs/f2fs.h

index b2c7dae4740aeb8bb0ad7c0a1c0c7bf67a836304..4dc7da8347ceab4ab41111f7461e0e177ff6eeba 100644 (file)
@@ -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;