diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-26 05:43:56 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 09:43:59 +0400 |
commit | a127e0af59ab610e8b37ac2dfa4cdb2ec8c8f604 (patch) | |
tree | 9184b632a82441d8f4d8c19514dfad15072d1718 /fs/ceph/dir.c | |
parent | 5c0f360b083fb33d05d1bff4b138b82d715eb419 (diff) | |
download | linux-a127e0af59ab610e8b37ac2dfa4cdb2ec8c8f604.tar.xz |
ceph: LOOKUP_OPEN is set only when it's the last component
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index ef8f08c343e8..b6d436f3c1ae 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -566,7 +566,6 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry, /* open (but not create!) intent? */ if (nd && (nd->flags & LOOKUP_OPEN) && - (nd->flags & LOOKUP_CONTINUE) == 0 && /* only open last component */ !(nd->intent.open.flags & O_CREAT)) { int mode = nd->intent.open.create_mode & ~current->fs->umask; return ceph_lookup_open(dir, dentry, nd, mode, 1); |