f2fs: allow dio read for LFS mode
commit e57e9ae5b179a6b243c42bf6d9549d1595c27089 upstream. 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>
This commit is contained in:
parent
00e5a211f9
commit
f9baf967bd
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter,
|
||||||
|
|
||||||
if (f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode))
|
if (f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode))
|
||||||
return 0;
|
return 0;
|
||||||
if (test_opt(F2FS_I_SB(inode), LFS))
|
if (rw == WRITE && test_opt(F2FS_I_SB(inode), LFS))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (trace_android_fs_dataread_start_enabled() &&
|
if (trace_android_fs_dataread_start_enabled() &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue