* [PATCH] Undefined symbol sync_dquots_dev() in quota.c
@ 2003-04-23 15:28 Stephane Ouellette
2003-04-23 15:33 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Stephane Ouellette @ 2003-04-23 15:28 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
Folks,
the following patch fixes a compile error under 2.4.21-rc1-ac1.
sync_dev_dquots() is undefined if CONFIG_QUOTA is not set.
Stephane Ouellette.
[-- Attachment #2: quota.c.patch --]
[-- Type: text/plain, Size: 551 bytes --]
--- linux-2.4.21-rc1-ac1-orig/fs/quota.c Wed Apr 23 11:22:49 2003
+++ linux-2.4.21-rc1-ac1-fixed/fs/quota.c Wed Apr 23 11:22:12 2003
@@ -197,7 +197,9 @@
case Q_SYNC:
if (sb)
return sb->s_qcop->quota_sync(sb, type);
+#ifdef CONFIG_QUOTA
sync_dquots_dev(NODEV, type);
+#endif
return 0;
case Q_XQUOTAON:
@@ -525,7 +527,9 @@
case Q_COMP_SYNC:
if (sb)
return sb->s_qcop->quota_sync(sb, type);
+#ifdef CONFIG_QUOTA
sync_dquots_dev(NODEV, type);
+#endif
return 0;
#ifdef CONFIG_QIFACE_V1
case Q_V1_RSQUASH: {
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Undefined symbol sync_dquots_dev() in quota.c
2003-04-23 15:28 [PATCH] Undefined symbol sync_dquots_dev() in quota.c Stephane Ouellette
@ 2003-04-23 15:33 ` Jeff Garzik
2003-04-23 15:59 ` Stephane Ouellette
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2003-04-23 15:33 UTC (permalink / raw)
To: Stephane Ouellette; +Cc: linux-kernel
On Wed, Apr 23, 2003 at 11:28:58AM -0400, Stephane Ouellette wrote:
> Folks,
>
> the following patch fixes a compile error under 2.4.21-rc1-ac1.
> sync_dev_dquots() is undefined if CONFIG_QUOTA is not set.
The right fix would be to make sure a no-op version of sync_dev_dquots
exists for that case.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Undefined symbol sync_dquots_dev() in quota.c
2003-04-23 15:33 ` Jeff Garzik
@ 2003-04-23 15:59 ` Stephane Ouellette
2003-04-23 16:02 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Stephane Ouellette @ 2003-04-23 15:59 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
Jeff Garzik wrote:
>On Wed, Apr 23, 2003 at 11:28:58AM -0400, Stephane Ouellette wrote:
>
>
>>Folks,
>>
>> the following patch fixes a compile error under 2.4.21-rc1-ac1.
>>sync_dev_dquots() is undefined if CONFIG_QUOTA is not set.
>>
>>
>
>The right fix would be to make sure a no-op version of sync_dev_dquots
>exists for that case.
>
> Jeff
>
>
Jeff,
the file fs/dquot.c is compiled only if CONFIG_QUOTA is set. That
would imply modifying the Makefile and #ifdeffing most of the code
inside dquot.c.
Stephane.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Undefined symbol sync_dquots_dev() in quota.c
2003-04-23 15:59 ` Stephane Ouellette
@ 2003-04-23 16:02 ` Jeff Garzik
2003-04-23 20:32 ` pixi
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2003-04-23 16:02 UTC (permalink / raw)
To: Stephane Ouellette; +Cc: linux-kernel
On Wed, Apr 23, 2003 at 11:59:16AM -0400, Stephane Ouellette wrote:
> Jeff Garzik wrote:
>
> >On Wed, Apr 23, 2003 at 11:28:58AM -0400, Stephane Ouellette wrote:
> >
> >
> >>Folks,
> >>
> >> the following patch fixes a compile error under 2.4.21-rc1-ac1.
> >>sync_dev_dquots() is undefined if CONFIG_QUOTA is not set.
> >>
> >>
> >
> >The right fix would be to make sure a no-op version of sync_dev_dquots
> >exists for that case.
> >
> > Jeff
> >
> >
>
> Jeff,
>
> the file fs/dquot.c is compiled only if CONFIG_QUOTA is set. That
> would imply modifying the Makefile and #ifdeffing most of the code
> inside dquot.c.
So? ;-)
Your patch modified fs/quota.c, which is compiled when CONFIG_QUOTACTL is
set, which in turn is set for CONFIG_QUOTA || CONFIG_XFS_QUOTA.
If you are adding CONFIG_QUOTA ifdefs to fs/quota.c, it is clear a
non-ifdef solution can be achieved.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Undefined symbol sync_dquots_dev() in quota.c
2003-04-23 16:02 ` Jeff Garzik
@ 2003-04-23 20:32 ` pixi
0 siblings, 0 replies; 5+ messages in thread
From: pixi @ 2003-04-23 20:32 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Stephane Ouellette, linux-kernel, Alan Cox
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
Jeff Garzik <jgarzik@pobox.com> writes:
: On Wed, Apr 23, 2003 at 11:59:16AM -0400, Stephane Ouellette wrote:
: > the file fs/dquot.c is compiled only if CONFIG_QUOTA is set. That
: > would imply modifying the Makefile and #ifdeffing most of the code
: > inside dquot.c.
:
: So? ;-)
:
: Your patch modified fs/quota.c, which is compiled when CONFIG_QUOTACTL is
: set, which in turn is set for CONFIG_QUOTA || CONFIG_XFS_QUOTA.
:
: If you are adding CONFIG_QUOTA ifdefs to fs/quota.c, it is clear a
: non-ifdef solution can be achieved.
yep. attached is the patch i made when i compiled the kernel, but
forgot to send on:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: quotaops.h.diff --]
[-- Type: text/x-patch, Size: 399 bytes --]
--- include/linux/quotaops.h.orig 2003-04-15 20:31:50.000000000 -0700
+++ include/linux/quotaops.h 2003-04-15 20:31:59.000000000 -0700
@@ -185,6 +185,7 @@
*/
#define sb_dquot_ops (NULL)
#define sb_quotactl_ops (NULL)
+#define sync_dquots_dev(dev,type) (NULL)
#define DQUOT_INIT(inode) do { } while(0)
#define DQUOT_DROP(inode) do { } while(0)
#define DQUOT_ALLOC_INODE(inode) (0)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-23 20:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 15:28 [PATCH] Undefined symbol sync_dquots_dev() in quota.c Stephane Ouellette
2003-04-23 15:33 ` Jeff Garzik
2003-04-23 15:59 ` Stephane Ouellette
2003-04-23 16:02 ` Jeff Garzik
2003-04-23 20:32 ` pixi
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).