From f9f795a4c089ac9938092a55c84b2efc8a1a8f5c Mon Sep 17 00:00:00 2001 From: tappro Date: Tue, 31 May 2005 11:02:50 +0000 Subject: [PATCH] b=6414,6366 r=alex it seems that this ASSERT is not needed here really. Such case is allowed --- lustre/smfs/inode.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lustre/smfs/inode.c b/lustre/smfs/inode.c index 12e85a7..1e6a729 100644 --- a/lustre/smfs/inode.c +++ b/lustre/smfs/inode.c @@ -240,28 +240,14 @@ static void smfs_dirty_inode(struct inode *inode) static void smfs_delete_inode(struct inode *inode) { struct inode * cache_inode = I2CI(inode); - /* - * smfs hold backfs inode, but delete_inode has to be invoked for it. - * smfs_clear_inode() is called here to do last iput() for backfs - * inode with subsequent deleting backfs inode also. - * This prevents backfs inode from being used once more - */ - LASSERTF((atomic_read(&cache_inode->i_count) == 1), - "inode %p cache inode %p #%lu i_count %d != 1 \n", - inode, cache_inode, cache_inode->i_ino, - atomic_read(&cache_inode->i_count)); - - smfs_clear_inode_info(inode); + //smfs_clear_inode_info(inode); clear_inode(inode); } static void smfs_clear_inode(struct inode *inode) { - //if there is inode_info then clear it - //This can be called from many places, not only from delete_inode() - if (I2SMI(inode)) - smfs_clear_inode_info(inode); + smfs_clear_inode_info(inode); } static void smfs_write_super(struct super_block *sb) -- 1.8.3.1