mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:10:54 +07:00
ovl: add O_DIRECT support
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
9e142c4102
commit
f7c72396d0
@ -110,6 +110,9 @@ static int ovl_open(struct inode *inode, struct file *file)
|
|||||||
if (IS_ERR(realfile))
|
if (IS_ERR(realfile))
|
||||||
return PTR_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;
|
file->private_data = realfile;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user