Whamcloud - gitweb
LU-3719 ldiskfs: adjust s_mb_prealloc_table_size correctly
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles11sp2 / ext4-read-write.patch
1 ---
2  fs/ext4/super.c |   12 ------------
3  1 file changed, 12 deletions(-)
4
5 --- a/fs/ext4/super.c
6 +++ b/fs/ext4/super.c
7 @@ -3216,10 +3216,6 @@ static int ext4_fill_super(struct super_
8                 goto cantfind_ext4;
9         sbi->s_kbytes_written = le64_to_cpu(es->s_kbytes_written);
10
11 -#ifndef CONFIG_EXT4_FS_RW
12 -       sb->s_flags |= MS_RDONLY;
13 -       ext4_msg(sb, KERN_INFO, "ext4 is supported in read-only mode only");
14 -#endif
15         /* Set defaults before we parse the mount options */
16         def_mount_opts = le32_to_cpu(es->s_default_mount_opts);
17         set_opt(sb, INIT_INODE_TABLE);
18 @@ -4487,14 +4483,6 @@ static int ext4_remount(struct super_blo
19         if (sbi->s_journal && sbi->s_journal->j_task->io_context)
20                 journal_ioprio = sbi->s_journal->j_task->io_context->ioprio;
21
22 -#ifndef CONFIG_EXT4_FS_RW
23 -       if (!(*flags & MS_RDONLY)) {
24 -               *flags |= MS_RDONLY;
25 -               ext4_msg(sb, KERN_INFO,
26 -                        "ext4 is supported in read-only mode only");
27 -       }
28 -#endif
29 -
30         /*
31          * Allow the "check" option to be passed as a remount option.
32          */