提交 f7c72396 编写于 作者: M Miklos Szeredi

ovl: add O_DIRECT support

Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 9e142c41
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册