mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse: fuse: reject O_DIRECT flag also in fuse_create
This commit is contained in:
commit
d0964c37b5
1 changed files with 3 additions and 0 deletions
|
@ -385,6 +385,9 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode,
|
||||||
if (fc->no_create)
|
if (fc->no_create)
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
|
|
||||||
|
if (flags & O_DIRECT)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
forget_req = fuse_get_req(fc);
|
forget_req = fuse_get_req(fc);
|
||||||
if (IS_ERR(forget_req))
|
if (IS_ERR(forget_req))
|
||||||
return PTR_ERR(forget_req);
|
return PTR_ERR(forget_req);
|
||||||
|
|
Loading…
Reference in a new issue