diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4e8983a9811b..422a4ce66778 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -946,8 +946,6 @@ static int ext4_show_options(struct seq_file *seq, struct vfsmount *vfs) | |||
946 | seq_puts(seq, ",journal_async_commit"); | 946 | seq_puts(seq, ",journal_async_commit"); |
947 | else if (test_opt(sb, JOURNAL_CHECKSUM)) | 947 | else if (test_opt(sb, JOURNAL_CHECKSUM)) |
948 | seq_puts(seq, ",journal_checksum"); | 948 | seq_puts(seq, ",journal_checksum"); |
949 | if (test_opt(sb, NOBH)) | ||
950 | seq_puts(seq, ",nobh"); | ||
951 | if (test_opt(sb, I_VERSION)) | 949 | if (test_opt(sb, I_VERSION)) |
952 | seq_puts(seq, ",i_version"); | 950 | seq_puts(seq, ",i_version"); |
953 | if (!test_opt(sb, DELALLOC)) | 951 | if (!test_opt(sb, DELALLOC)) |
@@ -1624,10 +1622,12 @@ set_qf_format: | |||
1624 | *n_blocks_count = option; | 1622 | *n_blocks_count = option; |
1625 | break; | 1623 | break; |
1626 | case Opt_nobh: | 1624 | case Opt_nobh: |
1627 | set_opt(sbi->s_mount_opt, NOBH); | 1625 | ext4_msg(sb, KERN_WARNING, |
1626 | "Ignoring deprecated nobh option"); | ||
1628 | break; | 1627 | break; |
1629 | case Opt_bh: | 1628 | case Opt_bh: |
1630 | clear_opt(sbi->s_mount_opt, NOBH); | 1629 | ext4_msg(sb, KERN_WARNING, |
1630 | "Ignoring deprecated bh option"); | ||
1631 | break; | 1631 | break; |
1632 | case Opt_i_version: | 1632 | case Opt_i_version: |
1633 | set_opt(sbi->s_mount_opt, I_VERSION); | 1633 | set_opt(sbi->s_mount_opt, I_VERSION); |
@@ -2912,18 +2912,7 @@ no_journal: | |||
2912 | ext4_msg(sb, KERN_ERR, "insufficient memory"); | 2912 | ext4_msg(sb, KERN_ERR, "insufficient memory"); |
2913 | goto failed_mount_wq; | 2913 | goto failed_mount_wq; |
2914 | } | 2914 | } |
2915 | if (test_opt(sb, NOBH)) { | 2915 | |
2916 | if (!(test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_WRITEBACK_DATA)) { | ||
2917 | ext4_msg(sb, KERN_WARNING, "Ignoring nobh option - " | ||
2918 | "its supported only with writeback mode"); | ||
2919 | clear_opt(sbi->s_mount_opt, NOBH); | ||
2920 | } | ||
2921 | if (test_opt(sb, DIOREAD_NOLOCK)) { | ||
2922 | ext4_msg(sb, KERN_WARNING, "dioread_nolock option is " | ||
2923 | "not supported with nobh mode"); | ||
2924 | goto failed_mount_wq; | ||
2925 | } | ||
2926 | } | ||
2927 | EXT4_SB(sb)->dio_unwritten_wq = create_workqueue("ext4-dio-unwritten"); | 2916 | EXT4_SB(sb)->dio_unwritten_wq = create_workqueue("ext4-dio-unwritten"); |
2928 | if (!EXT4_SB(sb)->dio_unwritten_wq) { | 2917 | if (!EXT4_SB(sb)->dio_unwritten_wq) { |
2929 | printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n"); | 2918 | printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n"); |