3 @@ -139,6 +139,8 @@ void ext4_kvfree(void *ptr)
7 +static int bigendian_extents;
9 ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
10 struct ext4_group_desc *bg)
12 @@ -1354,7 +1356,7 @@ enum {
13 Opt_nomblk_io_submit, Opt_block_validity, Opt_noblock_validity,
14 Opt_inode_readahead_blks, Opt_journal_ioprio,
15 Opt_dioread_nolock, Opt_dioread_lock,
17 + Opt_mballoc, Opt_bigendian_extents,
18 Opt_discard, Opt_nodiscard, Opt_init_itable, Opt_noinit_itable,
21 @@ -1429,6 +1431,7 @@ static const match_table_t tokens = {
22 {Opt_noauto_da_alloc, "noauto_da_alloc"},
23 {Opt_dioread_nolock, "dioread_nolock"},
24 {Opt_dioread_lock, "dioread_lock"},
25 + {Opt_bigendian_extents, "bigendian_extents"},
26 {Opt_mballoc, "mballoc"},
27 {Opt_discard, "discard"},
28 {Opt_nodiscard, "nodiscard"},
29 @@ -1903,6 +1906,9 @@ set_qf_format:
31 set_opt(sb,NO_AUTO_DA_ALLOC);
33 + case Opt_bigendian_extents:
34 + bigendian_extents = 1;
39 @@ -3497,6 +3503,16 @@ static int ext4_fill_super(struct super_
44 + if (bigendian_extents == 0) {
45 + printk(KERN_ERR "EXT4-fs: extents feature is not guaranteed to "
46 + "work on big-endian systems. Use \"bigendian_extents\" "
47 + "mount option to override.\n");
55 sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root);