public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ext4: don't work without procfs
@ 2011-10-04 15:44 Yargil
  2011-10-05 13:00 ` Lukas Czerner
  0 siblings, 1 reply; 3+ messages in thread
From: Yargil @ 2011-10-04 15:44 UTC (permalink / raw)
  To: linux-ext4; +Cc: Yargil

Regression from commit dd68314ccf3fb918c1fb6471817edbc60ece4b52
The problem come from the test of the return value of proc_mkdir
that is always false without procfs and abort the init of ext4.
---
 fs/ext4/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 44d0c8d..9b51b17 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4985,8 +4985,10 @@ static int __init ext4_init_fs(void)
 	if (!ext4_kset)
 		goto out6;
 	ext4_proc_root = proc_mkdir("fs/ext4", NULL);
+#ifdef CONFIG_PROC_FS
 	if (!ext4_proc_root)
 		goto out5;
+#endif
 
 	err = ext4_init_feat_adverts();
 	if (err)
-- 
1.7.2.5


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

* Re: [PATCH v2] ext4: don't work without procfs
  2011-10-04 15:44 [PATCH v2] ext4: don't work without procfs Yargil
@ 2011-10-05 13:00 ` Lukas Czerner
  2011-10-06 12:48   ` yargil
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Czerner @ 2011-10-05 13:00 UTC (permalink / raw)
  To: Yargil; +Cc: linux-ext4

On Tue, 4 Oct 2011, Yargil wrote:

> Regression from commit dd68314ccf3fb918c1fb6471817edbc60ece4b52
> The problem come from the test of the return value of proc_mkdir
> that is always false without procfs and abort the init of ext4.

Looks good. Thanks!

Reviewed-by: Lukas Czerner <lczerner@redhat.com>

> ---
>  fs/ext4/super.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index 44d0c8d..9b51b17 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -4985,8 +4985,10 @@ static int __init ext4_init_fs(void)
>  	if (!ext4_kset)
>  		goto out6;
>  	ext4_proc_root = proc_mkdir("fs/ext4", NULL);
> +#ifdef CONFIG_PROC_FS
>  	if (!ext4_proc_root)
>  		goto out5;
> +#endif
>  
>  	err = ext4_init_feat_adverts();
>  	if (err)
> 

-- 

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

* Re: [PATCH v2] ext4: don't work without procfs
  2011-10-05 13:00 ` Lukas Czerner
@ 2011-10-06 12:48   ` yargil
  0 siblings, 0 replies; 3+ messages in thread
From: yargil @ 2011-10-06 12:48 UTC (permalink / raw)
  To: Lukas Czerner; +Cc: linux-ext4

Selon Lukas Czerner <lczerner@redhat.com>:

Thanks for your review. But shame on me, i just found out that I did not follow
the procedure to submit the patch and it is not Signed-off-by. I will resubmit
you this patch by following the linux/Documentation/SubmittingPatches.

> On Tue, 4 Oct 2011, Yargil wrote:
>
> > Regression from commit dd68314ccf3fb918c1fb6471817edbc60ece4b52
> > The problem come from the test of the return value of proc_mkdir
> > that is always false without procfs and abort the init of ext4.
>
> Looks good. Thanks!
>
> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
>
> > ---
> >  fs/ext4/super.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> > index 44d0c8d..9b51b17 100644
> > --- a/fs/ext4/super.c
> > +++ b/fs/ext4/super.c
> > @@ -4985,8 +4985,10 @@ static int __init ext4_init_fs(void)
> >  	if (!ext4_kset)
> >  		goto out6;
> >  	ext4_proc_root = proc_mkdir("fs/ext4", NULL);
> > +#ifdef CONFIG_PROC_FS
> >  	if (!ext4_proc_root)
> >  		goto out5;
> > +#endif
> >
> >  	err = ext4_init_feat_adverts();
> >  	if (err)
> >
>
> --
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



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

end of thread, other threads:[~2011-10-06 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 15:44 [PATCH v2] ext4: don't work without procfs Yargil
2011-10-05 13:00 ` Lukas Czerner
2011-10-06 12:48   ` yargil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox