diff options
author | Eric Biggers <ebiggers@google.com> | 2021-07-16 16:39:12 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-07-25 17:42:37 +0200 |
commit | 6de8687ccdefed40d617492f4e1b3962eb577b6b (patch) | |
tree | efc09e5d7cc7444794a0809dc8f617fbb7fd492a /fs/f2fs/data.c | |
parent | f2fs: make f2fs_write_failed() take struct inode (diff) | |
download | linux-6de8687ccdefed40d617492f4e1b3962eb577b6b.tar.xz linux-6de8687ccdefed40d617492f4e1b3962eb577b6b.zip |
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/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 1803c68fa269..28ad1f533c2a 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3553,7 +3553,7 @@ static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter) if (f2fs_force_buffered_io(inode, iocb, iter)) return 0; - do_opu = allow_outplace_dio(inode, iocb, iter); + do_opu = rw == WRITE && f2fs_lfs_mode(sbi); trace_f2fs_direct_IO_enter(inode, offset, count, rw); |