Whamcloud - gitweb
LU-3289 gss: Return GSS major and minor status
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.4 / ext4-max-dir-size-options.patch
1 diff -urpN linux-stage.orig/fs/ext4/super.c linux-stage/fs/ext4/super.c
2 --- linux-stage.orig/fs/ext4/super.c    2013-05-13 09:35:17.628478645 -0400
3 +++ linux-stage/fs/ext4/super.c 2013-05-13 09:46:08.062358974 -0400
4 @@ -1268,6 +1268,7 @@ enum {
5         Opt_extents, Opt_noextents,
6         Opt_no_mbcache,
7         Opt_discard, Opt_nodiscard, Opt_init_itable, Opt_noinit_itable,
8 +       Opt_max_dir_size_kb,
9  };
10  
11  static const match_table_t tokens = {
12 @@ -1350,6 +1350,7 @@ static const match_table_t tokens = {
13         {Opt_init_itable, "init_itable=%u"},
14         {Opt_init_itable, "init_itable"},
15         {Opt_noinit_itable, "noinit_itable"},
16 +       {Opt_max_dir_size_kb, "max_dir_size_kb=%u"},
17         {Opt_err, NULL},
18  };
19  
20 @@ -1736,6 +1737,13 @@ set_qf_format:
21                 case Opt_nodelalloc:
22                         clear_opt(sbi->s_mount_opt, DELALLOC);
23                         break;
24 +               case Opt_max_dir_size_kb:
25 +                       if (match_int(&args[0], &option))
26 +                               return 0;
27 +                       if (option < 0)
28 +                               return 0;
29 +                       sbi->s_max_dir_size = option * 1024;
30 +                       break;
31                 case Opt_stripe:
32                         if (match_int(&args[0], &option))
33                                 return 0;