Whamcloud - gitweb
Branch HEAD
authorvitaly <vitaly>
Wed, 2 Apr 2008 18:55:37 +0000 (18:55 +0000)
committervitaly <vitaly>
Wed, 2 Apr 2008 18:55:37 +0000 (18:55 +0000)
b=14948
i=green
i=shadow

2.6.18 calls truncate_inode_pages() only if op->delete_inode() is
not installed, whereas 2.6.9 calls it in both cases.

lustre/llite/llite_lib.c

index 43651c6..0fd008c 100644 (file)
@@ -1818,6 +1818,7 @@ void ll_delete_inode(struct inode *inode)
         if (rc) {
                 CERROR("fid_delete() failed, rc %d\n", rc);
         }
+        truncate_inode_pages(&inode->i_data, 0);
         clear_inode(inode);
 
         EXIT;