JFS: jfs_delete_inode should always call clear_inode.

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>

+12 -12
+12 -12
fs/jfs/inode.c
··· 128 128 { 129 129 jfs_info("In jfs_delete_inode, inode = 0x%p", inode); 130 130 131 - if (is_bad_inode(inode) || 132 - (JFS_IP(inode)->fileset != cpu_to_le32(FILESYSTEM_I))) 133 - return; 131 + if (!is_bad_inode(inode) && 132 + (JFS_IP(inode)->fileset == cpu_to_le32(FILESYSTEM_I))) { 134 133 135 - if (test_cflag(COMMIT_Freewmap, inode)) 136 - jfs_free_zero_link(inode); 134 + if (test_cflag(COMMIT_Freewmap, inode)) 135 + jfs_free_zero_link(inode); 137 136 138 - diFree(inode); 137 + diFree(inode); 139 138 140 - /* 141 - * Free the inode from the quota allocation. 142 - */ 143 - DQUOT_INIT(inode); 144 - DQUOT_FREE_INODE(inode); 145 - DQUOT_DROP(inode); 139 + /* 140 + * Free the inode from the quota allocation. 141 + */ 142 + DQUOT_INIT(inode); 143 + DQUOT_FREE_INODE(inode); 144 + DQUOT_DROP(inode); 145 + } 146 146 147 147 clear_inode(inode); 148 148 }