From: Al Viro Date: Sun, 26 Jun 2011 01:43:56 +0000 (-0400) Subject: ceph: LOOKUP_OPEN is set only when it's the last component X-Git-Tag: v3.1-rc1~282^2~70 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a127e0af59ab610e8b37ac2dfa4cdb2ec8c8f604;p=uclinux-h8%2Flinux.git ceph: LOOKUP_OPEN is set only when it's the last component Signed-off-by: Al Viro --- 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);