]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: don't require all inode fields when just doing a lookup
authorSage Weil <sage@newdream.net>
Sun, 18 Jan 2009 02:07:53 +0000 (18:07 -0800)
committerSage Weil <sage@newdream.net>
Sun, 18 Jan 2009 02:07:53 +0000 (18:07 -0800)
src/kernel/dir.c

index b1b112902cfdca655c25c41440801ca7b348fbe8..461b4239dc410d4dfc0f417b5c5995b9275d67f9 100644 (file)
@@ -445,8 +445,7 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
                return ceph_lookup_open(dir, dentry, nd, mode, 1);
        }
 
-       return ceph_do_lookup(dir->i_sb, dentry, CEPH_STAT_CAP_INODE_ALL,
-                             0, 1);
+       return ceph_do_lookup(dir->i_sb, dentry, CEPH_STAT_CAP_INODE, 0, 1);
 }
 
 static int ceph_mknod(struct inode *dir, struct dentry *dentry,