diff options
Diffstat (limited to 'fs/jfs/inode.c')
-rw-r--r-- | fs/jfs/inode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c index 182b78cc3e62..9dd126276c9f 100644 --- a/fs/jfs/inode.c +++ b/fs/jfs/inode.c | |||
@@ -149,6 +149,9 @@ void jfs_delete_inode(struct inode *inode) | |||
149 | { | 149 | { |
150 | jfs_info("In jfs_delete_inode, inode = 0x%p", inode); | 150 | jfs_info("In jfs_delete_inode, inode = 0x%p", inode); |
151 | 151 | ||
152 | if (!is_bad_inode(inode)) | ||
153 | dquot_initialize(inode); | ||
154 | |||
152 | if (!is_bad_inode(inode) && | 155 | if (!is_bad_inode(inode) && |
153 | (JFS_IP(inode)->fileset == FILESYSTEM_I)) { | 156 | (JFS_IP(inode)->fileset == FILESYSTEM_I)) { |
154 | truncate_inode_pages(&inode->i_data, 0); | 157 | truncate_inode_pages(&inode->i_data, 0); |
@@ -161,9 +164,9 @@ void jfs_delete_inode(struct inode *inode) | |||
161 | /* | 164 | /* |
162 | * Free the inode from the quota allocation. | 165 | * Free the inode from the quota allocation. |
163 | */ | 166 | */ |
164 | vfs_dq_init(inode); | 167 | dquot_initialize(inode); |
165 | vfs_dq_free_inode(inode); | 168 | dquot_free_inode(inode); |
166 | vfs_dq_drop(inode); | 169 | dquot_drop(inode); |
167 | } | 170 | } |
168 | 171 | ||
169 | clear_inode(inode); | 172 | clear_inode(inode); |