diff options
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r-- | fs/ext3/super.c | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 6c953bb255e7..5dbf4dba03c4 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) |
@@ -661,9 +650,6 @@ static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs) | |||
661 | */ | 650 | */ |
662 | seq_puts(seq, ",barrier="); | 651 | seq_puts(seq, ",barrier="); |
663 | seq_puts(seq, test_opt(sb, BARRIER) ? "1" : "0"); | 652 | seq_puts(seq, test_opt(sb, BARRIER) ? "1" : "0"); |
664 | if (test_opt(sb, NOBH)) | ||
665 | seq_puts(seq, ",nobh"); | ||
666 | |||
667 | seq_printf(seq, ",data=%s", data_mode_string(test_opt(sb, DATA_FLAGS))); | 653 | seq_printf(seq, ",data=%s", data_mode_string(test_opt(sb, DATA_FLAGS))); |
668 | if (test_opt(sb, DATA_ERR_ABORT)) | 654 | if (test_opt(sb, DATA_ERR_ABORT)) |
669 | seq_puts(seq, ",data_err=abort"); | 655 | seq_puts(seq, ",data_err=abort"); |
@@ -783,14 +769,13 @@ static const struct super_operations ext3_sops = { | |||
783 | .destroy_inode = ext3_destroy_inode, | 769 | .destroy_inode = ext3_destroy_inode, |
784 | .write_inode = ext3_write_inode, | 770 | .write_inode = ext3_write_inode, |
785 | .dirty_inode = ext3_dirty_inode, | 771 | .dirty_inode = ext3_dirty_inode, |
786 | .delete_inode = ext3_delete_inode, | 772 | .evict_inode = ext3_evict_inode, |
787 | .put_super = ext3_put_super, | 773 | .put_super = ext3_put_super, |
788 | .sync_fs = ext3_sync_fs, | 774 | .sync_fs = ext3_sync_fs, |
789 | .freeze_fs = ext3_freeze, | 775 | .freeze_fs = ext3_freeze, |
790 | .unfreeze_fs = ext3_unfreeze, | 776 | .unfreeze_fs = ext3_unfreeze, |
791 | .statfs = ext3_statfs, | 777 | .statfs = ext3_statfs, |
792 | .remount_fs = ext3_remount, | 778 | .remount_fs = ext3_remount, |
793 | .clear_inode = ext3_clear_inode, | ||
794 | .show_options = ext3_show_options, | 779 | .show_options = ext3_show_options, |
795 | #ifdef CONFIG_QUOTA | 780 | #ifdef CONFIG_QUOTA |
796 | .quota_read = ext3_quota_read, | 781 | .quota_read = ext3_quota_read, |
@@ -1255,10 +1240,12 @@ set_qf_format: | |||
1255 | *n_blocks_count = option; | 1240 | *n_blocks_count = option; |
1256 | break; | 1241 | break; |
1257 | case Opt_nobh: | 1242 | case Opt_nobh: |
1258 | set_opt(sbi->s_mount_opt, NOBH); | 1243 | ext3_msg(sb, KERN_WARNING, |
1244 | "warning: ignoring deprecated nobh option"); | ||
1259 | break; | 1245 | break; |
1260 | case Opt_bh: | 1246 | case Opt_bh: |
1261 | clear_opt(sbi->s_mount_opt, NOBH); | 1247 | ext3_msg(sb, KERN_WARNING, |
1248 | "warning: ignoring deprecated bh option"); | ||
1262 | break; | 1249 | break; |
1263 | default: | 1250 | default: |
1264 | ext3_msg(sb, KERN_ERR, | 1251 | ext3_msg(sb, KERN_ERR, |
@@ -2001,14 +1988,6 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) | |||
2001 | break; | 1988 | break; |
2002 | } | 1989 | } |
2003 | 1990 | ||
2004 | if (test_opt(sb, NOBH)) { | ||
2005 | if (!(test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)) { | ||
2006 | ext3_msg(sb, KERN_WARNING, | ||
2007 | "warning: ignoring nobh option - " | ||
2008 | "it is supported only with writeback mode"); | ||
2009 | clear_opt(sbi->s_mount_opt, NOBH); | ||
2010 | } | ||
2011 | } | ||
2012 | /* | 1991 | /* |
2013 | * The journal_load will have done any necessary log recovery, | 1992 | * The journal_load will have done any necessary log recovery, |
2014 | * so we can safely mount the rest of the filesystem now. | 1993 | * so we can safely mount the rest of the filesystem now. |