Commit a127e0af authored by Al Viro's avatar Al Viro

ceph: LOOKUP_OPEN is set only when it's the last component

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5c0f360b
...@@ -566,7 +566,6 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry, ...@@ -566,7 +566,6 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
/* open (but not create!) intent? */ /* open (but not create!) intent? */
if (nd && if (nd &&
(nd->flags & LOOKUP_OPEN) && (nd->flags & LOOKUP_OPEN) &&
(nd->flags & LOOKUP_CONTINUE) == 0 && /* only open last component */
!(nd->intent.open.flags & O_CREAT)) { !(nd->intent.open.flags & O_CREAT)) {
int mode = nd->intent.open.create_mode & ~current->fs->umask; int mode = nd->intent.open.create_mode & ~current->fs->umask;
return ceph_lookup_open(dir, dentry, nd, mode, 1); return ceph_lookup_open(dir, dentry, nd, mode, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment