Whamcloud - gitweb
add an assert, from alex.
authorericm <ericm>
Fri, 16 Sep 2005 00:14:21 +0000 (00:14 +0000)
committerericm <ericm>
Fri, 16 Sep 2005 00:14:21 +0000 (00:14 +0000)
lustre/llite/llite_lib.c

index 2b5ff01..d0ca61d 100644 (file)
@@ -1211,6 +1211,8 @@ void ll_clear_inode(struct inode *inode)
         list_for_each_entry_safe(ocapa, tmp, &lli->lli_capas, u.client.lli_list)
                 capa_put(ocapa);
 
         list_for_each_entry_safe(ocapa, tmp, &lli->lli_capas, u.client.lli_list)
                 capa_put(ocapa);
 
+        LASSERT(!mapping_has_pages(inode->i_mapping));
+
         lli->lli_inode_magic = LLI_INODE_DEAD;
         EXIT;
 }
         lli->lli_inode_magic = LLI_INODE_DEAD;
         EXIT;
 }