diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-11 12:08:22 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:27 +0200 |
| commit | d846add023bf21bac3df76035ef88e223ba1aa5a (patch) | |
| tree | 24ac1049af5db78bd44f3c3185a54531b71b0d10 | |
| parent | 418b984a478cff6f0814dd33ad3062c099279f00 (diff) | |
f2fs: allow dio read for LFS mode
We can allow dio reads for LFS mode, while doing buffered writes for dio writes.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -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 8d9be86c8..c2af2535e 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1749,7 +1749,7 @@ static ssize_t f2fs_direct_IO(int rw, struct kiocb *iocb, if (f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode)) return 0; - if (test_opt(F2FS_I_SB(inode), LFS)) + if (rw == WRITE && test_opt(F2FS_I_SB(inode), LFS)) return 0; trace_f2fs_direct_IO_enter(inode, offset, count, rw); |
