Skip to content
Snippets Groups Projects
Commit f7c72396 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: add O_DIRECT support

parent 9e142c41
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment