diff options
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r-- | fs/ext3/super.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 6c953bb255e7..a951fd5c081c 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -527,17 +527,6 @@ static void destroy_inodecache(void) | |||
527 | kmem_cache_destroy(ext3_inode_cachep); | 527 | kmem_cache_destroy(ext3_inode_cachep); |
528 | } | 528 | } |
529 | 529 | ||
530 | static void ext3_clear_inode(struct inode *inode) | ||
531 | { | ||
532 | struct ext3_block_alloc_info *rsv = EXT3_I(inode)->i_block_alloc_info; | ||
533 | |||
534 | dquot_drop(inode); | ||
535 | ext3_discard_reservation(inode); | ||
536 | EXT3_I(inode)->i_block_alloc_info = NULL; | ||
537 | if (unlikely(rsv)) | ||
538 | kfree(rsv); | ||
539 | } | ||
540 | |||
541 | static inline void ext3_show_quota_options(struct seq_file *seq, struct super_block *sb) | 530 | static inline void ext3_show_quota_options(struct seq_file *seq, struct super_block *sb) |
542 | { | 531 | { |
543 | #if defined(CONFIG_QUOTA) | 532 | #if defined(CONFIG_QUOTA) |
@@ -783,14 +772,13 @@ static const struct super_operations ext3_sops = { | |||
783 | .destroy_inode = ext3_destroy_inode, | 772 | .destroy_inode = ext3_destroy_inode, |
784 | .write_inode = ext3_write_inode, | 773 | .write_inode = ext3_write_inode, |
785 | .dirty_inode = ext3_dirty_inode, | 774 | .dirty_inode = ext3_dirty_inode, |
786 | .delete_inode = ext3_delete_inode, | 775 | .evict_inode = ext3_evict_inode, |
787 | .put_super = ext3_put_super, | 776 | .put_super = ext3_put_super, |
788 | .sync_fs = ext3_sync_fs, | 777 | .sync_fs = ext3_sync_fs, |
789 | .freeze_fs = ext3_freeze, | 778 | .freeze_fs = ext3_freeze, |
790 | .unfreeze_fs = ext3_unfreeze, | 779 | .unfreeze_fs = ext3_unfreeze, |
791 | .statfs = ext3_statfs, | 780 | .statfs = ext3_statfs, |
792 | .remount_fs = ext3_remount, | 781 | .remount_fs = ext3_remount, |
793 | .clear_inode = ext3_clear_inode, | ||
794 | .show_options = ext3_show_options, | 782 | .show_options = ext3_show_options, |
795 | #ifdef CONFIG_QUOTA | 783 | #ifdef CONFIG_QUOTA |
796 | .quota_read = ext3_quota_read, | 784 | .quota_read = ext3_quota_read, |