Skip to contentSkip to conversation

Enable extents by default for ext4dev

PATCH In review Mingming Cao 3 participants 5 messages Jul 1, 2007 – Jul 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Enable extents by default for ext4dev

Turn on extents feature by default in ext4 filesystem. User could use -o noextents to turn it off.

fs/ext4/super.c +6 -0
Index: linux-2.6.22-rc4/fs/ext4/super.c
===================================================================
@@ -1546,6 +1546,12 @@
 
 	set_opt(sbi->s_mount_opt, RESERVATION);
 
+	/*
+	 * turn on extents feature by default in ext4 filesystem
+	 * User -o noextents to turn it off
+	 */
+	set_opt (sbi->s_mount_opt, EXTENTS);
+
 	if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum,
 			    NULL, 0))
 		goto failed_mount;
#2 lore raw
In reply to Andrew Morton
Quoted 27 lines · Andrew Morton
Quoted 3 lines · On Sun, 01 Jul 2007 03:36:01 -0400 Mingming Cao <[email protected]> wrote:

Turn on extents feature by default in ext4 filesystem. User could use -o noextents to turn it off.

Oh, there you go.

Quoted 6 lines

Index: linux-2.6.22-rc4/fs/ext4/super.c
===================================================================

fs/ext4/super.c line 1554

Quoted 9 lines
fs/ext4/super.c +6 -0
@@ -1546,6 +1546,12 @@
 
 	set_opt(sbi->s_mount_opt, RESERVATION);
 
+	/*
+	 * turn on extents feature by default in ext4 filesystem
+	 * User -o noextents to turn it off
+	 */
+	set_opt (sbi->s_mount_opt, EXTENTS);
+

Broken coding style.

Quoted 4 lines

Please feed all the ext4 patches through scripts/checkpatch.pl (preferably version 0.07 - see Andy's patch on lkml) and then consider addressing the (quite large) number of mistakes which are detected.

Sorry about this. I was using version 0.04. The latest one I can find for now is 0.05(searching lkml), but it didn't catch this codling style bug either. I appreciate if anyone can point me the version 0.07, thanks

Mingming

#1 lore raw
In reply to Mingming Cao
Quoted 3 lines · On Sun, 01 Jul 2007 03:36:01 -0400 Mingming Cao <[email protected]> wrote:

Turn on extents feature by default in ext4 filesystem. User could use -o noextents to turn it off.

Oh, there you go.

Quoted 6 lines

Index: linux-2.6.22-rc4/fs/ext4/super.c
===================================================================

fs/ext4/super.c line 1554

Quoted 9 lines
fs/ext4/super.c +6 -0
@@ -1546,6 +1546,12 @@
 
 	set_opt(sbi->s_mount_opt, RESERVATION);
 
+	/*
+	 * turn on extents feature by default in ext4 filesystem
+	 * User -o noextents to turn it off
+	 */
+	set_opt (sbi->s_mount_opt, EXTENTS);
+

Broken coding style.

Please feed all the ext4 patches through scripts/checkpatch.pl (preferably version 0.07 - see Andy's patch on lkml) and then consider addressing the (quite large) number of mistakes which are detected.

#4 lore raw
In reply to Dave Jones
Quoted 10 lines · Dave Jones
Quoted 4 lines · Mingming Cao

Sorry about this. I was using version 0.04. The latest one I can find for now is 0.05(searching lkml), but it didn't catch this codling style bug either. I appreciate if anyone can point me the version 0.07, thanks

It's now in-tree in scripts/checkpatch.pl
(linus' tree is still at 0.06 though, I suspect Andrew has something
newer in -mm)

Thanks, Andy has uploaded the 0.07 version at
http://www.shadowen.org/~apw/public/checkpatch/checkpatch.pl-0.07

Mingming

#3 lore raw
In reply to Mingming Cao
Quoted 4 lines · Mingming Cao

Sorry about this. I was using version 0.04. The latest one I can find for now is 0.05(searching lkml), but it didn't catch this codling style bug either. I appreciate if anyone can point me the version 0.07, thanks

It's now in-tree in scripts/checkpatch.pl
(linus' tree is still at 0.06 though, I suspect Andrew has something
newer in -mm)

Dave

Signature · 1 line
http://www.codemonkey.org.uk