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 11:44:45.000000000 -0400
3 +++ linux-stage/fs/ext4/super.c 2013-05-13 11:50:19.000000000 -0400
4 @@ -1248,8 +1248,8 @@ enum {
5 Opt_mballoc, Opt_bigendian_extents, Opt_force_over_128tb,
6 Opt_extents, Opt_noextents,
8 - Opt_discard, Opt_nodiscard,
9 - Opt_init_inode_table, Opt_noinit_inode_table,
10 + Opt_discard, Opt_nodiscard, Opt_init_inode_table, Opt_noinit_inode_table,
11 + Opt_max_dir_size_kb,
14 static const match_table_t tokens = {
15 @@ -1326,6 +1326,7 @@ static const match_table_t tokens = {
16 {Opt_noextents, "noextents"},
17 {Opt_discard, "discard"},
18 {Opt_nodiscard, "nodiscard"},
19 + {Opt_max_dir_size_kb, "max_dir_size_kb=%u"},
23 @@ -1708,6 +1709,13 @@ set_qf_format:
25 clear_opt(sbi->s_mount_opt, DELALLOC);
27 + case Opt_max_dir_size_kb:
28 + if (match_int(&args[0], &option))
32 + sbi->s_max_dir_size = option * 1024;
35 if (match_int(&args[0], &option))