projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae1be1
)
f2fs: allow dio read for LFS mode
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 11 Nov 2016 20:08:22 +0000
(12:08 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 25 Nov 2016 18:15:12 +0000
(10:15 -0800)
We can allow dio reads for LFS mode, while doing buffered writes for dio writes.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index ca53da5686336517eb70a1c4d66592bfd499d2f3..996b9aef94cebc3f246564299dba8a08bb370012 100644
(file)
--- a/
fs/f2fs/data.c
+++ b/
fs/f2fs/data.c
@@
-1732,7
+1732,7
@@
static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
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);