Whamcloud - gitweb
Reduce number of over-the-wire getattrs by half, and avoid duplicate
authoradilger <adilger>
Fri, 23 Aug 2002 21:23:23 +0000 (21:23 +0000)
committeradilger <adilger>
Fri, 23 Aug 2002 21:23:23 +0000 (21:23 +0000)
inodes for every file operation.  This doesn't fix the dentry refcount
problem, but it is a big step in the right direction.

lustre/llite/namei.c

index 3449602..1122372 100644 (file)
@@ -86,9 +86,9 @@ static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode)
 /* methods */
 static int ll_find_inode(struct inode *inode, unsigned long ino, void *opaque)
 {
-        struct mds_body *body = (struct mds_body *)opaque;
+        struct ll_inode_md *md = opaque;
 
-        if (inode->i_generation != body->generation)
+        if (inode->i_generation != md->body->generation)
                 return 0;
 
         return 1;