1 Index: linux-stage/fs/ext4/super.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/super.c 2011-03-11 15:27:08.000000000 +0800
4 +++ linux-stage/fs/ext4/super.c 2011-03-11 15:29:41.023089829 +0800
6 static int ext4_freeze(struct super_block *sb);
9 +static int bigendian_extents;
11 ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
12 struct ext4_group_desc *bg)
15 Opt_block_validity, Opt_noblock_validity,
16 Opt_inode_readahead_blks, Opt_journal_ioprio,
17 Opt_discard, Opt_nodiscard,
19 + Opt_mballoc, Opt_bigendian_extents,
22 static const match_table_t tokens = {
24 {Opt_auto_da_alloc, "auto_da_alloc=%u"},
25 {Opt_auto_da_alloc, "auto_da_alloc"},
26 {Opt_noauto_da_alloc, "noauto_da_alloc"},
27 + {Opt_bigendian_extents, "bigendian_extents"},
28 {Opt_mballoc, "mballoc"},
29 {Opt_discard, "discard"},
30 {Opt_nodiscard, "nodiscard"},
35 + case Opt_bigendian_extents:
36 + bigendian_extents = 1;
39 set_opt(sbi->s_mount_opt, DISCARD);
41 @@ -3073,6 +3079,16 @@
46 + if (bigendian_extents == 0) {
47 + printk(KERN_ERR "EXT4-fs: extents feature is not guaranteed to "
48 + "work on big-endian systems. Use \"bigendian_extents\" "
49 + "mount option to override.\n");
57 sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root);