linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix ext3 warning for unused var
@ 2005-10-06 15:35 Paolo 'Blaisorblade' Giarrusso
  0 siblings, 0 replies; 16+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2005-10-06 15:35 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Gcc warns about an unused var, fix this. Introduced in commit
275abf5b06676ca057cf3e15f0d027eafcb204a0, after 2.6.14-rc2.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 fs/ext3/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext3/super.c b/fs/ext3/super.c
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -513,7 +513,9 @@ static void ext3_clear_inode(struct inod
 static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
 {
 	struct super_block *sb = vfs->mnt_sb;
+#if defined(CONFIG_QUOTA)
 	struct ext3_sb_info *sbi = EXT3_SB(sb);
+#endif
 
 	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
 		seq_puts(seq, ",data=journal");


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 20:16 ` Linus Torvalds
  2005-10-09 19:53   ` jmerkey
@ 2005-10-28 18:23   ` Peter Osterlund
  1 sibling, 0 replies; 16+ messages in thread
From: Peter Osterlund @ 2005-10-28 18:23 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Paolo 'Blaisorblade' Giarrusso, Andrew Morton, linux-kernel

Linus Torvalds <torvalds@osdl.org> writes:

> On Sun, 9 Oct 2005, Paolo 'Blaisorblade' Giarrusso wrote:
> >
> > Can please someone merge this? It's the 3rd time I send it.
> 
> I don't like #ifdef's in code. 
> 
> You could just have split up the quota-specific stuff into a function of 
> their own: "ext3_show_quota_options()". The patch might have been larger, 
> but it would actually clean up the code rather than make it uglier.
> 
> Warnings are not a reason for ugly code.

Fix compile warning in ext3 quota code.

Signed-off-by: Peter Osterlund <petero2@telia.com>
---

 fs/ext3/super.c |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 9e24ceb..097383c 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -510,19 +510,11 @@ static void ext3_clear_inode(struct inod
 	kfree(rsv);
 }
 
-static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
+static inline void ext3_show_quota_options(struct seq_file *seq, struct super_block *sb)
 {
-	struct super_block *sb = vfs->mnt_sb;
+#if defined(CONFIG_QUOTA)
 	struct ext3_sb_info *sbi = EXT3_SB(sb);
 
-	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
-		seq_puts(seq, ",data=journal");
-	else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA)
-		seq_puts(seq, ",data=ordered");
-	else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)
-		seq_puts(seq, ",data=writeback");
-
-#if defined(CONFIG_QUOTA)
 	if (sbi->s_jquota_fmt)
 		seq_printf(seq, ",jqfmt=%s",
 		(sbi->s_jquota_fmt == QFMT_VFS_OLD) ? "vfsold": "vfsv0");
@@ -539,6 +531,20 @@ static int ext3_show_options(struct seq_
 	if (sbi->s_mount_opt & EXT3_MOUNT_GRPQUOTA)
 		seq_puts(seq, ",grpquota");
 #endif
+}
+
+static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
+{
+	struct super_block *sb = vfs->mnt_sb;
+
+	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
+		seq_puts(seq, ",data=journal");
+	else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA)
+		seq_puts(seq, ",data=ordered");
+	else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)
+		seq_puts(seq, ",data=writeback");
+
+	ext3_show_quota_options(seq, sb);
 
 	return 0;
 }

-- 
Peter Osterlund - petero2@telia.com
http://web.telia.com/~u89404340

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:47             ` jmerkey
@ 2005-10-10 11:02               ` Andi Kleen
  0 siblings, 0 replies; 16+ messages in thread
From: Andi Kleen @ 2005-10-10 11:02 UTC (permalink / raw)
  To: jmerkey
  Cc: Al Viro, Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

jmerkey <jmerkey@utah-nac.org> writes:
> 
> Yep.   Needs to get fixed because when you upgrade from a reiserfs
> system and try to keep the reiserfs partitions and add a new hard
> drive (+1) to
> an existing system, you run the risk of corrupting resiferfs
> partitions. Jeff

Newer mkreiserfs overwrites the beginning of the partition to 
avoid that. Probably yours was created with a very old one.

-Andi

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:13           ` jmerkey
  2005-10-09 23:47             ` Al Viro
  2005-10-09 23:55             ` Valdis.Kletnieks
@ 2005-10-10  1:43             ` Gene Heskett
  2 siblings, 0 replies; 16+ messages in thread
From: Gene Heskett @ 2005-10-10  1:43 UTC (permalink / raw)
  To: linux-kernel

On Sunday 09 October 2005 18:13, jmerkey wrote:
>Al Viro wrote:
[...]
>>Sorry, but I doubt that Hans or anybody in RH knows how to patch
>
>---> wetware, <----
>
>Is this the new "official" non-official slang word for Suse Linux?

Not hardly Jeff, where have you been?  Wetware refers to the brain of the
individual being targeted.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.35% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:08         ` Al Viro
  2005-10-09 22:13           ` jmerkey
@ 2005-10-09 23:58           ` Valdis.Kletnieks
  2005-10-09 22:47             ` jmerkey
  1 sibling, 1 reply; 16+ messages in thread
From: Valdis.Kletnieks @ 2005-10-09 23:58 UTC (permalink / raw)
  To: Al Viro
  Cc: jmerkey, Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

On Sun, 09 Oct 2005 23:08:38 BST, Al Viro said:

> Since when does fsck run fsck.ext3 on filesystems that are not marked
> as ext3 in /etc/fstab?

Part of the problem is that if a partition is formatted with mkfs.ext3,
it gets an ext3 magic number scribbled at a known offset into the partition.
If you then reformat it with mkfs.reiserfs, that scribbles a different
magic number elsewhere on the partition, but leaves the ext3 magic number
intact.  As a result, if you forget to update /etc/fstab, fsck.ext3 checks
for its magic number, finds it, concludes it's probably an ext3, and then
discovers that everything is totally scrogged.....

Yes, it's pilot error, but it's definitely hitting your feet with much larger
caliber rounds than you would have expected... :)

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:13           ` jmerkey
  2005-10-09 23:47             ` Al Viro
@ 2005-10-09 23:55             ` Valdis.Kletnieks
  2005-10-10  1:43             ` Gene Heskett
  2 siblings, 0 replies; 16+ messages in thread
From: Valdis.Kletnieks @ 2005-10-09 23:55 UTC (permalink / raw)
  To: jmerkey
  Cc: Al Viro, Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

On Sun, 09 Oct 2005 16:13:51 MDT, jmerkey said:

> ---> wetware, <----
> 
> Is this the new "official" non-official slang word for Suse Linux?

No.

http://www.catb.org/~esr/jargon/html/W/wetware.html

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:13           ` jmerkey
@ 2005-10-09 23:47             ` Al Viro
  2005-10-09 23:55             ` Valdis.Kletnieks
  2005-10-10  1:43             ` Gene Heskett
  2 siblings, 0 replies; 16+ messages in thread
From: Al Viro @ 2005-10-09 23:47 UTC (permalink / raw)
  To: jmerkey
  Cc: Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

On Sun, Oct 09, 2005 at 04:13:51PM -0600, jmerkey wrote:
> >Sorry, but I doubt that Hans or anybody in RH knows how to patch 
> >
> 
> ---> wetware, <----
> 
> Is this the new "official" non-official slang word for Suse Linux?

That's fairly old and unless the contents of your skull is even weirder
than I ever thought, the answer's "no".

> >let alone one as messed up as yours.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 23:58           ` Valdis.Kletnieks
@ 2005-10-09 22:47             ` jmerkey
  2005-10-10 11:02               ` Andi Kleen
  0 siblings, 1 reply; 16+ messages in thread
From: jmerkey @ 2005-10-09 22:47 UTC (permalink / raw)
  To: Valdis.Kletnieks
  Cc: Al Viro, Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

Valdis.Kletnieks@vt.edu wrote:

>On Sun, 09 Oct 2005 23:08:38 BST, Al Viro said:
>
>  
>
>>Since when does fsck run fsck.ext3 on filesystems that are not marked
>>as ext3 in /etc/fstab?
>>    
>>
>
>Part of the problem is that if a partition is formatted with mkfs.ext3,
>it gets an ext3 magic number scribbled at a known offset into the partition.
>If you then reformat it with mkfs.reiserfs, that scribbles a different
>magic number elsewhere on the partition, but leaves the ext3 magic number
>intact.  As a result, if you forget to update /etc/fstab, fsck.ext3 checks
>for its magic number, finds it, concludes it's probably an ext3, and then
>discovers that everything is totally scrogged.....
>
>Yes, it's pilot error, but it's definitely hitting your feet with much larger
>caliber rounds than you would have expected... :)
>  
>

Yep.   Needs to get fixed because when you upgrade from a reiserfs 
system and try to keep the reiserfs partitions and add a new hard drive 
(+1) to
an existing system, you run the risk of corrupting resiferfs partitions. 

Jeff



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 22:08         ` Al Viro
@ 2005-10-09 22:13           ` jmerkey
  2005-10-09 23:47             ` Al Viro
                               ` (2 more replies)
  2005-10-09 23:58           ` Valdis.Kletnieks
  1 sibling, 3 replies; 16+ messages in thread
From: jmerkey @ 2005-10-09 22:13 UTC (permalink / raw)
  To: Al Viro
  Cc: Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

Al Viro wrote:

>On Sun, Oct 09, 2005 at 02:18:17PM -0600, jmerkey wrote:
>  
>
>>If they all use the same on disk formats as their basic structure,
>>    
>>
>
>ext3 and reiserfs?  No, they do not.
>
>  
>
>>fsck 
>>should not return gt > 1 due to misinterpreting reiser on-disk 
>>structures. It should say "oh not one of mine, skipping". Instead it 
>>returns an error claiming massive corruption, and halts the system. I 
>>just upgraded my wifes computer from Suse to RedHat FC4 and when it hits 
>>the reiser partitions, the whole system explodes due to fsck.ext3 
>>misrecognizing reiser partitions.
>>    
>>
>
>Since when does fsck run fsck.ext3 on filesystems that are not marked
>as ext3 in /etc/fstab?
>
>  
>
>>I had to modify rc.sysinit and blank 
>>the partitions with fdisk to get it to install. After it installed, I 
>>recreated the partitions (after writing down what they were in the first 
>>place for block #'s etc.) and disabled rc.sysinit checks. This is 
>>busted. Hans needs to fix fsck.ext3 and submit a patch or redhat does.
>>    
>>
>
>Sorry, but I doubt that Hans or anybody in RH knows how to patch 
>

---> wetware, <----

Is this the new "official" non-official slang word for Suse Linux?

Jeff


>let alone one as messed up as yours.
>-
>  
>


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 20:18       ` jmerkey
@ 2005-10-09 22:08         ` Al Viro
  2005-10-09 22:13           ` jmerkey
  2005-10-09 23:58           ` Valdis.Kletnieks
  0 siblings, 2 replies; 16+ messages in thread
From: Al Viro @ 2005-10-09 22:08 UTC (permalink / raw)
  To: jmerkey
  Cc: Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

On Sun, Oct 09, 2005 at 02:18:17PM -0600, jmerkey wrote:
> If they all use the same on disk formats as their basic structure,

ext3 and reiserfs?  No, they do not.

> fsck 
> should not return gt > 1 due to misinterpreting reiser on-disk 
> structures. It should say "oh not one of mine, skipping". Instead it 
> returns an error claiming massive corruption, and halts the system. I 
> just upgraded my wifes computer from Suse to RedHat FC4 and when it hits 
> the reiser partitions, the whole system explodes due to fsck.ext3 
> misrecognizing reiser partitions.

Since when does fsck run fsck.ext3 on filesystems that are not marked
as ext3 in /etc/fstab?

>I had to modify rc.sysinit and blank 
> the partitions with fdisk to get it to install. After it installed, I 
> recreated the partitions (after writing down what they were in the first 
> place for block #'s etc.) and disabled rc.sysinit checks. This is 
> busted. Hans needs to fix fsck.ext3 and submit a patch or redhat does.

Sorry, but I doubt that Hans or anybody in RH knows how to patch wetware,
let alone one as messed up as yours.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 19:53   ` jmerkey
@ 2005-10-09 21:29     ` Al Viro
  2005-10-09 20:18       ` jmerkey
  0 siblings, 1 reply; 16+ messages in thread
From: Al Viro @ 2005-10-09 21:29 UTC (permalink / raw)
  To: jmerkey
  Cc: Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

On Sun, Oct 09, 2005 at 01:53:23PM -0600, jmerkey wrote:
> Someone needs to fix fsck.ext3 while they are at it so it doesn't barf 
> when reading from reisferfs filesystems and return a command return of > 
> 2 during scanning of parttions during bootup. This looks like some sort 
> of anti-competitive crap and it doesn't belong in fsck.ext3 since 
> reiserfs is in the kernel.

Huh?  WTF are you trying to feed reiserfs to fsck.ext3 and just what do
you expect it to do?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 21:29     ` Al Viro
@ 2005-10-09 20:18       ` jmerkey
  2005-10-09 22:08         ` Al Viro
  0 siblings, 1 reply; 16+ messages in thread
From: jmerkey @ 2005-10-09 20:18 UTC (permalink / raw)
  To: Al Viro
  Cc: Linus Torvalds, Paolo 'Blaisorblade' Giarrusso,
	Andrew Morton, linux-kernel

Al Viro wrote:

>On Sun, Oct 09, 2005 at 01:53:23PM -0600, jmerkey wrote:
>  
>
>>Someone needs to fix fsck.ext3 while they are at it so it doesn't barf 
>>when reading from reisferfs filesystems and return a command return of > 
>>2 during scanning of parttions during bootup. This looks like some sort 
>>of anti-competitive crap and it doesn't belong in fsck.ext3 since 
>>reiserfs is in the kernel.
>>    
>>
>
>Huh?  WTF are you trying to feed reiserfs to fsck.ext3 and just what do
>you expect it to do?
>
>  
>
If they all use the same on disk formats as their basic structure, fsck 
should not return gt > 1 due to misinterpreting reiser on-disk 
structures. It should say "oh not one of mine, skipping". Instead it 
returns an error claiming massive corruption, and halts the system. I 
just upgraded my wifes computer from Suse to RedHat FC4 and when it hits 
the reiser partitions, the whole system explodes due to fsck.ext3 
misrecognizing reiser partitions. I had to modify rc.sysinit and blank 
the partitions with fdisk to get it to install. After it installed, I 
recreated the partitions (after writing down what they were in the first 
place for block #'s etc.) and disabled rc.sysinit checks. This is 
busted. Hans needs to fix fsck.ext3 and submit a patch or redhat does.

J



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 19:58 Paolo 'Blaisorblade' Giarrusso
@ 2005-10-09 20:16 ` Linus Torvalds
  2005-10-09 19:53   ` jmerkey
  2005-10-28 18:23   ` Peter Osterlund
  0 siblings, 2 replies; 16+ messages in thread
From: Linus Torvalds @ 2005-10-09 20:16 UTC (permalink / raw)
  To: Paolo 'Blaisorblade' Giarrusso; +Cc: Andrew Morton, linux-kernel



On Sun, 9 Oct 2005, Paolo 'Blaisorblade' Giarrusso wrote:
>
> Can please someone merge this? It's the 3rd time I send it.

I don't like #ifdef's in code. 

You could just have split up the quota-specific stuff into a function of 
their own: "ext3_show_quota_options()". The patch might have been larger, 
but it would actually clean up the code rather than make it uglier.

Warnings are not a reason for ugly code.

		Linus

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH] Fix ext3 warning for unused var
@ 2005-10-09 19:58 Paolo 'Blaisorblade' Giarrusso
  2005-10-09 20:16 ` Linus Torvalds
  0 siblings, 1 reply; 16+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2005-10-09 19:58 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel

From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Fix a gcc warning about an unused var. Introduced in commit
275abf5b06676ca057cf3e15f0d027eafcb204a0, after 2.6.14-rc2.
I just verified this is still current as of commit
829841146878e082613a49581ae252c071057c23.
Can please someone merge this? It's the 3rd time I send it.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 fs/ext3/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext3/super.c b/fs/ext3/super.c
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -513,7 +513,9 @@ static void ext3_clear_inode(struct inod
 static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
 {
 	struct super_block *sb = vfs->mnt_sb;
+#if defined(CONFIG_QUOTA)
 	struct ext3_sb_info *sbi = EXT3_SB(sb);
+#endif
 
 	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
 		seq_puts(seq, ",data=journal");


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix ext3 warning for unused var
  2005-10-09 20:16 ` Linus Torvalds
@ 2005-10-09 19:53   ` jmerkey
  2005-10-09 21:29     ` Al Viro
  2005-10-28 18:23   ` Peter Osterlund
  1 sibling, 1 reply; 16+ messages in thread
From: jmerkey @ 2005-10-09 19:53 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Paolo 'Blaisorblade' Giarrusso, Andrew Morton, linux-kernel

Linus Torvalds wrote:

>On Sun, 9 Oct 2005, Paolo 'Blaisorblade' Giarrusso wrote:
>  
>
>>Can please someone merge this? It's the 3rd time I send it.
>>    
>>
>
>I don't like #ifdef's in code. 
>
>You could just have split up the quota-specific stuff into a function of 
>their own: "ext3_show_quota_options()". The patch might have been larger, 
>but it would actually clean up the code rather than make it uglier.
>
>Warnings are not a reason for ugly code.
>
>		Linus
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>
Someone needs to fix fsck.ext3 while they are at it so it doesn't barf 
when reading from reisferfs filesystems and return a command return of > 
2 during scanning of parttions during bootup. This looks like some sort 
of anti-competitive crap and it doesn't belong in fsck.ext3 since 
reiserfs is in the kernel.

J

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH] Fix ext3 warning for unused var
@ 2005-09-29 18:40 Paolo 'Blaisorblade' Giarrusso
  0 siblings, 0 replies; 16+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2005-09-29 18:40 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Gcc warns about an unused var, fix this. Introduced in commit
275abf5b06676ca057cf3e15f0d027eafcb204a0, after 2.6.14-rc2.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 fs/ext3/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext3/super.c b/fs/ext3/super.c
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -513,7 +513,9 @@ static void ext3_clear_inode(struct inod
 static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
 {
 	struct super_block *sb = vfs->mnt_sb;
+#if defined(CONFIG_QUOTA)
 	struct ext3_sb_info *sbi = EXT3_SB(sb);
+#endif
 
 	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
 		seq_puts(seq, ",data=journal");


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-10-28 18:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 15:35 [PATCH] Fix ext3 warning for unused var Paolo 'Blaisorblade' Giarrusso
  -- strict thread matches above, loose matches on Subject: below --
2005-10-09 19:58 Paolo 'Blaisorblade' Giarrusso
2005-10-09 20:16 ` Linus Torvalds
2005-10-09 19:53   ` jmerkey
2005-10-09 21:29     ` Al Viro
2005-10-09 20:18       ` jmerkey
2005-10-09 22:08         ` Al Viro
2005-10-09 22:13           ` jmerkey
2005-10-09 23:47             ` Al Viro
2005-10-09 23:55             ` Valdis.Kletnieks
2005-10-10  1:43             ` Gene Heskett
2005-10-09 23:58           ` Valdis.Kletnieks
2005-10-09 22:47             ` jmerkey
2005-10-10 11:02               ` Andi Kleen
2005-10-28 18:23   ` Peter Osterlund
2005-09-29 18:40 Paolo 'Blaisorblade' Giarrusso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).