From: adilger Date: Fri, 23 Aug 2002 21:23:23 +0000 (+0000) Subject: Reduce number of over-the-wire getattrs by half, and avoid duplicate X-Git-Tag: 0.5.5~65 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c35b436b97bcf9859d180a48c807c4e4c80b2fbe;p=fs%2Flustre-release.git Reduce number of over-the-wire getattrs by half, and avoid duplicate inodes for every file operation. This doesn't fix the dentry refcount problem, but it is a big step in the right direction. --- diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 3449602..1122372 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -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;