diff options
Diffstat (limited to 'fs/ext2/super.c')
| -rw-r--r-- | fs/ext2/super.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 7ff43f4a59cd..1ec602673ea8 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
| @@ -195,17 +195,6 @@ static void destroy_inodecache(void) | |||
| 195 | kmem_cache_destroy(ext2_inode_cachep); | 195 | kmem_cache_destroy(ext2_inode_cachep); |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | static void ext2_clear_inode(struct inode *inode) | ||
| 199 | { | ||
| 200 | struct ext2_block_alloc_info *rsv = EXT2_I(inode)->i_block_alloc_info; | ||
| 201 | |||
| 202 | dquot_drop(inode); | ||
| 203 | ext2_discard_reservation(inode); | ||
| 204 | EXT2_I(inode)->i_block_alloc_info = NULL; | ||
| 205 | if (unlikely(rsv)) | ||
| 206 | kfree(rsv); | ||
| 207 | } | ||
| 208 | |||
| 209 | static int ext2_show_options(struct seq_file *seq, struct vfsmount *vfs) | 198 | static int ext2_show_options(struct seq_file *seq, struct vfsmount *vfs) |
| 210 | { | 199 | { |
| 211 | struct super_block *sb = vfs->mnt_sb; | 200 | struct super_block *sb = vfs->mnt_sb; |
| @@ -299,13 +288,12 @@ static const struct super_operations ext2_sops = { | |||
| 299 | .alloc_inode = ext2_alloc_inode, | 288 | .alloc_inode = ext2_alloc_inode, |
| 300 | .destroy_inode = ext2_destroy_inode, | 289 | .destroy_inode = ext2_destroy_inode, |
| 301 | .write_inode = ext2_write_inode, | 290 | .write_inode = ext2_write_inode, |
| 302 | .delete_inode = ext2_delete_inode, | 291 | .evict_inode = ext2_evict_inode, |
| 303 | .put_super = ext2_put_super, | 292 | .put_super = ext2_put_super, |
| 304 | .write_super = ext2_write_super, | 293 | .write_super = ext2_write_super, |
| 305 | .sync_fs = ext2_sync_fs, | 294 | .sync_fs = ext2_sync_fs, |
| 306 | .statfs = ext2_statfs, | 295 | .statfs = ext2_statfs, |
| 307 | .remount_fs = ext2_remount, | 296 | .remount_fs = ext2_remount, |
| 308 | .clear_inode = ext2_clear_inode, | ||
| 309 | .show_options = ext2_show_options, | 297 | .show_options = ext2_show_options, |
| 310 | #ifdef CONFIG_QUOTA | 298 | #ifdef CONFIG_QUOTA |
| 311 | .quota_read = ext2_quota_read, | 299 | .quota_read = ext2_quota_read, |
