f2fs.h (4a2c5b7994960fac29cf8a3f4e62855bae1b27d4) f2fs.h (dbf8e63f48af48f3f0a069fc971c9826312dbfc1)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/f2fs.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#ifndef _LINUX_F2FS_H

--- 4488 unchanged lines hidden (view full) ---

4497 if (fsverity_active(inode))
4498 return true;
4499 if (f2fs_compressed_file(inode))
4500 return true;
4501
4502 /* disallow direct IO if any of devices has unaligned blksize */
4503 if (f2fs_is_multi_device(sbi) && !sbi->aligned_blksize)
4504 return true;
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/f2fs.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#ifndef _LINUX_F2FS_H

--- 4488 unchanged lines hidden (view full) ---

4497 if (fsverity_active(inode))
4498 return true;
4499 if (f2fs_compressed_file(inode))
4500 return true;
4501
4502 /* disallow direct IO if any of devices has unaligned blksize */
4503 if (f2fs_is_multi_device(sbi) && !sbi->aligned_blksize)
4504 return true;
4505 /*
4506 * for blkzoned device, fallback direct IO to buffered IO, so
4507 * all IOs can be serialized by log-structured write.
4508 */
4509 if (f2fs_sb_has_blkzoned(sbi))
4510 return true;
4505
4511 if (f2fs_lfs_mode(sbi) && (rw == WRITE)) {
4512 if (block_unaligned_IO(inode, iocb, iter))
4513 return true;
4514 if (F2FS_IO_ALIGNED(sbi))
4515 return true;
4516 }
4517 if (is_sbi_flag_set(F2FS_I_SB(inode), SBI_CP_DISABLED))
4518 return true;

--- 60 unchanged lines hidden ---
4506 if (f2fs_lfs_mode(sbi) && (rw == WRITE)) {
4507 if (block_unaligned_IO(inode, iocb, iter))
4508 return true;
4509 if (F2FS_IO_ALIGNED(sbi))
4510 return true;
4511 }
4512 if (is_sbi_flag_set(F2FS_I_SB(inode), SBI_CP_DISABLED))
4513 return true;

--- 60 unchanged lines hidden ---