1 Index: linux-2.6.18-92.1.6/fs/ext3/super.c
2 ===================================================================
3 --- linux-2.6.18-92.1.6.orig/fs/ext3/super.c
4 +++ linux-2.6.18-92.1.6/fs/ext3/super.c
5 @@ -71,6 +71,8 @@ static void ext3_unlockfs(struct super_b
6 static void ext3_write_super (struct super_block * sb);
7 static void ext3_write_super_lockfs(struct super_block *sb);
9 +static int bigendian_extents;
12 * Wrappers for journal_start/end.
14 @@ -706,7 +708,7 @@ enum {
15 Opt_ignore, Opt_barrier, Opt_err, Opt_resize, Opt_usrquota,
16 Opt_iopen, Opt_noiopen, Opt_iopen_nopriv,
18 - Opt_extents, Opt_noextents, Opt_extdebug,
19 + Opt_extents, Opt_noextents, Opt_bigendian_extents, Opt_extdebug,
20 Opt_mballoc, Opt_nomballoc, Opt_stripe, Opt_maxdirsize
23 @@ -766,6 +768,7 @@ static match_table_t tokens = {
24 {Opt_barrier, "barrier=%u"},
25 {Opt_extents, "extents"},
26 {Opt_noextents, "noextents"},
27 + {Opt_bigendian_extents, "bigendian_extents"},
28 {Opt_extdebug, "extdebug"},
29 {Opt_mballoc, "mballoc"},
30 {Opt_nomballoc, "nomballoc"},
31 @@ -1129,6 +1132,9 @@ clear_qf_name:
33 clear_opt (sbi->s_mount_opt, EXTENTS);
35 + case Opt_bigendian_extents:
36 + bigendian_extents = 1;
39 set_opt (sbi->s_mount_opt, EXTDEBUG);
41 @@ -2224,6 +2230,15 @@ static int ext3_fill_super (struct super
46 + if (bigendian_extents == 0) {
47 + printk(KERN_ERR "EXT3-fs: extents feature is not guaranteed to "
48 + "work on big-endian systems. Use \"bigendian_extents\" "
49 + "mount option to override.\n");
54 bgl_lock_init(&sbi->s_blockgroup_lock);
56 sbi->s_last_alloc_group = -1;