From 68c799b0aa95d7b3a8169212e8cbe757df3b00cf Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 9 May 2007 23:14:30 +0000 Subject: [PATCH] Branch HEAD Move #ifdef above now-redundant checks if __iget() is not exported, per Oleg's inspection comments. b=12391 i=green --- lustre/llite/namei.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 4bba5d6..3ec9b6a 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -73,21 +73,21 @@ static int ll_test_inode(struct inode *inode, void *opaque) return 0; #endif if (inode->i_generation != md->body->generation) { - struct ll_sb_info *sbi = ll_i2sbi(inode); - struct ll_inode_info *lli = ll_i2info(inode); - +#ifdef HAVE_EXPORT___IGET if (inode->i_state & (I_FREEING | I_CLEAR)) return 0; if (inode->i_nlink == 0) return 0; /* add "duplicate" inode into deathrow for destroy */ - spin_lock(&sbi->ll_deathrow_lock); - if (list_empty(&lli->lli_dead_list)) { + spin_lock(&ll_i2sbi(inode)->ll_deathrow_lock); + if (list_empty(&ll_i2info(inode)->lli_dead_list)) { __iget(inode); - list_add(&lli->lli_dead_list, &sbi->ll_deathrow); + list_add(&ll_i2info(inode)->lli_dead_list, + &ll_i2sbi(inode)->ll_deathrow); } - spin_unlock(&sbi->ll_deathrow_lock); + spin_unlock(&ll_i2sbi(inode)->ll_deathrow_lock); +#endif return 0; } -- 1.8.3.1