aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@austin.ibm.com>2005-08-30 15:28:56 -0400
committerDave Kleikamp <shaggy@austin.ibm.com>2005-08-30 15:28:56 -0400
commitb1b5d7f9b7ac6a8e3452ac43a53eebf69fdf5a77 (patch)
tree365e7fdc04910e5b7589e4b96c5efa06edb33191 /fs
parent6b39374a27eb4be7e9d82145ae270ba02ea90dc8 (diff)
JFS: jfs_delete_inode should always call clear_inode.
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/jfs/inode.c24
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}