projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iw_cxgb4: handle draining an idle qp
[deliverable/linux.git]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index 55bdc75e2172a38487ea2942176c127fdad0eb82..17cb6b1dab753b9de6366f92b6ca3ba3cb204291 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-992,14
+992,12
@@
struct file *filp_open(const char *filename, int flags, umode_t mode)
EXPORT_SYMBOL(filp_open);
struct file *file_open_root(struct dentry *dentry, struct vfsmount *mnt,
EXPORT_SYMBOL(filp_open);
struct file *file_open_root(struct dentry *dentry, struct vfsmount *mnt,
- const char *filename, int flags)
+ const char *filename, int flags
, umode_t mode
)
{
struct open_flags op;
{
struct open_flags op;
- int err = build_open_flags(flags,
0
, &op);
+ int err = build_open_flags(flags,
mode
, &op);
if (err)
return ERR_PTR(err);
if (err)
return ERR_PTR(err);
- if (flags & O_CREAT)
- return ERR_PTR(-EINVAL);
return do_file_open_root(dentry, mnt, filename, &op);
}
EXPORT_SYMBOL(file_open_root);
return do_file_open_root(dentry, mnt, filename, &op);
}
EXPORT_SYMBOL(file_open_root);
This page took
0.023743 seconds
and
5
git commands to generate.