projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nl80211: explicitly check enum nl80211_mesh_power_mode
[cascardo/linux.git]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index
93ae3cd
..
bf66cf1
100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-840,13
+840,13
@@
EXPORT_SYMBOL(file_path);
int vfs_open(const struct path *path, struct file *file,
const struct cred *cred)
{
int vfs_open(const struct path *path, struct file *file,
const struct cred *cred)
{
- struct
inode *inode = vfs_select_inode(path->dentry
, file->f_flags);
+ struct
dentry *dentry = d_real(path->dentry, NULL
, file->f_flags);
- if (IS_ERR(
inode
))
- return PTR_ERR(
inode
);
+ if (IS_ERR(
dentry
))
+ return PTR_ERR(
dentry
);
file->f_path = *path;
file->f_path = *path;
- return do_dentry_open(file,
inode
, NULL, cred);
+ return do_dentry_open(file,
d_backing_inode(dentry)
, NULL, cred);
}
struct file *dentry_open(const struct path *path, int flags,
}
struct file *dentry_open(const struct path *path, int flags,