From c35b436b97bcf9859d180a48c807c4e4c80b2fbe Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 23 Aug 2002 21:23:23 +0000 Subject: [PATCH] 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. --- lustre/llite/namei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.3.1