Commit b1b5d7f9 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: jfs_delete_inode should always call clear_inode.

Signed-off-by: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent 6b39374a
...@@ -128,9 +128,8 @@ void jfs_delete_inode(struct inode *inode) ...@@ -128,9 +128,8 @@ void jfs_delete_inode(struct inode *inode)
{ {
jfs_info("In jfs_delete_inode, inode = 0x%p", inode); jfs_info("In jfs_delete_inode, inode = 0x%p", inode);
if (is_bad_inode(inode) || if (!is_bad_inode(inode) &&
(JFS_IP(inode)->fileset != cpu_to_le32(FILESYSTEM_I))) (JFS_IP(inode)->fileset == cpu_to_le32(FILESYSTEM_I))) {
return;
if (test_cflag(COMMIT_Freewmap, inode)) if (test_cflag(COMMIT_Freewmap, inode))
jfs_free_zero_link(inode); jfs_free_zero_link(inode);
...@@ -143,6 +142,7 @@ void jfs_delete_inode(struct inode *inode) ...@@ -143,6 +142,7 @@ void jfs_delete_inode(struct inode *inode)
DQUOT_INIT(inode); DQUOT_INIT(inode);
DQUOT_FREE_INODE(inode); DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode); DQUOT_DROP(inode);
}
clear_inode(inode); clear_inode(inode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment