Whamcloud - gitweb
Minor compilation fixes for RedHat 2.4.9
[fs/lustre-release.git] / lustre / obdfs / namei.c
index 34808b7..1d79362 100644 (file)
@@ -63,7 +63,8 @@ static inline void ext2_inc_count(struct inode *inode)
 static inline void ext2_dec_count(struct inode *inode)
 {
        inode->i_nlink--;
-       // obdfs_change_inode(inode);
+       if (inode->i_nlink > 0) 
+               obdfs_change_inode(inode);
 }
 
 static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode)