diff options
Diffstat (limited to 'fs/jfs')
-rw-r--r-- | fs/jfs/inode.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c index 767c7ecb429e..37da3e33e750 100644 --- a/fs/jfs/inode.c +++ b/fs/jfs/inode.c | |||
@@ -128,21 +128,21 @@ void jfs_delete_inode(struct inode *inode) | |||
128 | { | 128 | { |
129 | jfs_info("In jfs_delete_inode, inode = 0x%p", inode); | 129 | jfs_info("In jfs_delete_inode, inode = 0x%p", inode); |
130 | 130 | ||
131 | if (is_bad_inode(inode) || | 131 | if (!is_bad_inode(inode) && |
132 | (JFS_IP(inode)->fileset != cpu_to_le32(FILESYSTEM_I))) | 132 | (JFS_IP(inode)->fileset == cpu_to_le32(FILESYSTEM_I))) { |
133 | return; | ||
134 | 133 | ||
135 | if (test_cflag(COMMIT_Freewmap, inode)) | 134 | if (test_cflag(COMMIT_Freewmap, inode)) |
136 | jfs_free_zero_link(inode); | 135 | jfs_free_zero_link(inode); |
137 | 136 | ||
138 | diFree(inode); | 137 | diFree(inode); |
139 | 138 | ||
140 | /* | 139 | /* |
141 | * Free the inode from the quota allocation. | 140 | * Free the inode from the quota allocation. |
142 | */ | 141 | */ |
143 | DQUOT_INIT(inode); | 142 | DQUOT_INIT(inode); |
144 | DQUOT_FREE_INODE(inode); | 143 | DQUOT_FREE_INODE(inode); |
145 | DQUOT_DROP(inode); | 144 | DQUOT_DROP(inode); |
145 | } | ||
146 | 146 | ||
147 | clear_inode(inode); | 147 | clear_inode(inode); |
148 | } | 148 | } |