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:
9e142c4
)
ovl: add O_DIRECT support
author
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:42 +0000
(15:44 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:42 +0000
(15:44 +0200)
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c
patch
|
blob
|
history
diff --git
a/fs/overlayfs/file.c
b/fs/overlayfs/file.c
index 7590e43369f6be324f58c6395e0d192a0bcb90c7..c49af241c0013b7872e5579f2366a15d2f2421a8 100644
(file)
--- a/
fs/overlayfs/file.c
+++ b/
fs/overlayfs/file.c
@@
-110,6
+110,9
@@
static int ovl_open(struct inode *inode, struct file *file)
if (IS_ERR(realfile))
return PTR_ERR(realfile);
+ /* For O_DIRECT dentry_open() checks f_mapping->a_ops->direct_IO */
+ file->f_mapping = realfile->f_mapping;
+
file->private_data = realfile;
return 0;