diff options
author | Eric Biggers <ebiggers@google.com> | 2021-07-16 17:39:12 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-07-25 18:42:37 +0300 |
commit | 6de8687ccdefed40d617492f4e1b3962eb577b6b (patch) | |
tree | efc09e5d7cc7444794a0809dc8f617fbb7fd492a /fs/f2fs/file.c | |
parent | 3e679dc78c17825a55e6f2cdb9078e375c945b15 (diff) | |
download | linux-6de8687ccdefed40d617492f4e1b3962eb577b6b.tar.xz |
f2fs: remove allow_outplace_dio()
We can just check f2fs_lfs_mode() directly. The block_unaligned_IO()
check is redundant because in LFS mode, f2fs doesn't do direct I/O
writes that aren't block-aligned (due to f2fs_force_buffered_io()
returning true in this case, triggering the fallback to buffered I/O).
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6afd4562335f..b1cb5b50faac 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -4292,7 +4292,7 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) * back to buffered IO. */ if (!f2fs_force_buffered_io(inode, iocb, from) && - allow_outplace_dio(inode, iocb, from)) + f2fs_lfs_mode(F2FS_I_SB(inode))) goto write; } preallocated = true; |