f2fs: remove allow_outplace_dio()
authorEric Biggers <ebiggers@google.com>
Fri, 16 Jul 2021 14:39:12 +0000 (09:39 -0500)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 25 Jul 2021 15:42:37 +0000 (08:42 -0700)
commit6de8687ccdefed40d617492f4e1b3962eb577b6b
treeefc09e5d7cc7444794a0809dc8f617fbb7fd492a
parent3e679dc78c17825a55e6f2cdb9078e375c945b15
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>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c