All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] erofs: print error code in erofs_err() of erofs_readdir
@ 2026-11-27  2:56 Zhiguo Niu
  2026-11-27  4:08 ` Gao Xiang
  0 siblings, 1 reply; 6+ messages in thread
From: Zhiguo Niu @ 2026-11-27  2:56 UTC (permalink / raw)
  To: xiang, chao
  Cc: niuzhiguo84, zhiguo.niu, ke.wang, zbestahu, jefflexu, dhavale,
	hongbohbli, guochunhai, linux-erofs

Under system stress tests, the following log frequently shows up:
erofs: (device dm-8): erofs_readdir: failed to readdir of logical
block 0 of nid 124

Without the err value, it is hard to tell whether the failure was
caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
Print the error code so that we can get more clues to the problem.

Also fix the similar codes in other erofs_err() call sites where a
real error code is available but not printed:
- erofs_read_superblock: "cannot read erofs superblock"
- z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
  hotplug init
- z_erofs_readahead: "readahead error at folio ... @ nid ..."

Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
---
 fs/erofs/dir.c   | 4 ++--
 fs/erofs/super.c | 2 +-
 fs/erofs/zdata.c | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
index 4aa52a5f204a..69aea8a7c3dc 100644
--- a/fs/erofs/dir.c
+++ b/fs/erofs/dir.c
@@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
 
 		de = erofs_bread(&buf, dbstart, true);
 		if (IS_ERR(de)) {
-			erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
-				  erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
 			err = PTR_ERR(de);
+			erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
+				  erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
 			break;
 		}
 
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index e92a7fa90ae3..39f195e6d10b 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -273,7 +273,7 @@ static int erofs_read_superblock(struct super_block *sb)
 
 	data = erofs_read_metabuf(&buf, sb, 0, false);
 	if (IS_ERR(data)) {
-		erofs_err(sb, "cannot read erofs superblock");
+		erofs_err(sb, "cannot read erofs superblock: %ld", PTR_ERR(data));
 		return PTR_ERR(data);
 	}
 
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index e981e371d6c2..02a5342cec9d 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -416,13 +416,13 @@ static int z_erofs_init_pcpu_workers(struct super_block *sb)
 
 	err = erofs_init_percpu_workers();
 	if (err) {
-		erofs_err(sb, "per-cpu workers: failed to allocate.");
+		erofs_err(sb, "per-cpu workers: failed to allocate: %d", err);
 		goto err_init_percpu_workers;
 	}
 
 	err = erofs_cpu_hotplug_init();
 	if (err < 0) {
-		erofs_err(sb, "per-cpu workers: failed CPU hotplug init.");
+		erofs_err(sb, "per-cpu workers: failed CPU hotplug init: %d", err);
 		goto err_cpuhp_init;
 	}
 	erofs_info(sb, "initialized per-cpu workers successfully.");
@@ -1896,8 +1896,8 @@ static void z_erofs_readahead(struct readahead_control *rac)
 	while ((folio = readahead_folio_last(rac))) {
 		err = z_erofs_scan_folio(&f, folio, true);
 		if (err && err != -EINTR)
-			erofs_err(realinode->i_sb, "readahead error at folio %lu @ nid %llu",
-				  folio->index, EROFS_I(realinode)->nid);
+			erofs_err(realinode->i_sb, "readahead error at folio %lu @ nid %llu: %d",
+				  folio->index, EROFS_I(realinode)->nid, err);
 	}
 	z_erofs_pcluster_readmore(&f, rac, false);
 	z_erofs_pcluster_end(&f);
-- 
2.43.0



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

* Re: [PATCH] erofs: print error code in erofs_err() of erofs_readdir
  2026-11-27  2:56 [PATCH] erofs: print error code in erofs_err() of erofs_readdir Zhiguo Niu
@ 2026-11-27  4:08 ` Gao Xiang
  2026-11-27  7:49   ` Zhiguo Niu
  2026-11-30  2:05   ` Zhiguo Niu
  0 siblings, 2 replies; 6+ messages in thread
From: Gao Xiang @ 2026-11-27  4:08 UTC (permalink / raw)
  To: Zhiguo Niu
  Cc: xiang, chao, niuzhiguo84, ke.wang, zbestahu, jefflexu, dhavale,
	hongbohbli, guochunhai, linux-erofs

Hi Zhiguo,

On Fri, Nov 27, 2026 at 10:56:36AM +0800, Zhiguo Niu wrote:
> Under system stress tests, the following log frequently shows up:
> erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> block 0 of nid 124
> 
> Without the err value, it is hard to tell whether the failure was
> caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> Print the error code so that we can get more clues to the problem.
> 
> Also fix the similar codes in other erofs_err() call sites where a
> real error code is available but not printed:
> - erofs_read_superblock: "cannot read erofs superblock"
> - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
>   hotplug init
> - z_erofs_readahead: "readahead error at folio ... @ nid ..."
> 
> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> ---
>  fs/erofs/dir.c   | 4 ++--
>  fs/erofs/super.c | 2 +-
>  fs/erofs/zdata.c | 8 ++++----
>  3 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
> index 4aa52a5f204a..69aea8a7c3dc 100644
> --- a/fs/erofs/dir.c
> +++ b/fs/erofs/dir.c
> @@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
>  
>  		de = erofs_bread(&buf, dbstart, true);
>  		if (IS_ERR(de)) {

I guess the correct way is that we shouldn't error out -EINTR.

> -			erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
> -				  erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
>  			err = PTR_ERR(de);
> +			erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
> +				  erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);

you should just use %pe here directly.

>  			break;
>  		}
>  
> diff --git a/fs/erofs/super.c b/fs/erofs/super.c
> index e92a7fa90ae3..39f195e6d10b 100644
> --- a/fs/erofs/super.c
> +++ b/fs/erofs/super.c
> @@ -273,7 +273,7 @@ static int erofs_read_superblock(struct super_block *sb)
>  
>  	data = erofs_read_metabuf(&buf, sb, 0, false);
>  	if (IS_ERR(data)) {
> -		erofs_err(sb, "cannot read erofs superblock");
> +		erofs_err(sb, "cannot read erofs superblock: %ld", PTR_ERR(data));

same here.

Thanks,
Gao Xiang


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

* Re: [PATCH] erofs: print error code in erofs_err() of erofs_readdir
  2026-11-27  4:08 ` Gao Xiang
@ 2026-11-27  7:49   ` Zhiguo Niu
  2026-11-30  2:05   ` Zhiguo Niu
  1 sibling, 0 replies; 6+ messages in thread
From: Zhiguo Niu @ 2026-11-27  7:49 UTC (permalink / raw)
  To: Zhiguo Niu, xiang, chao, niuzhiguo84, ke.wang, zbestahu, jefflexu,
	dhavale, hongbohbli, guochunhai, linux-erofs

Hi Xiang

Gao Xiang <xiang@kernel.org> 于2026年11月27日周五 12:08写道:
>
> Hi Zhiguo,
>
> On Fri, Nov 27, 2026 at 10:56:36AM +0800, Zhiguo Niu wrote:
> > Under system stress tests, the following log frequently shows up:
> > erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> > block 0 of nid 124
> >
> > Without the err value, it is hard to tell whether the failure was
> > caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> > Print the error code so that we can get more clues to the problem.
> >
> > Also fix the similar codes in other erofs_err() call sites where a
> > real error code is available but not printed:
> > - erofs_read_superblock: "cannot read erofs superblock"
> > - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
> >   hotplug init
> > - z_erofs_readahead: "readahead error at folio ... @ nid ..."
> >
> > Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> > ---
> >  fs/erofs/dir.c   | 4 ++--
> >  fs/erofs/super.c | 2 +-
> >  fs/erofs/zdata.c | 8 ++++----
> >  3 files changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
> > index 4aa52a5f204a..69aea8a7c3dc 100644
> > --- a/fs/erofs/dir.c
> > +++ b/fs/erofs/dir.c
> > @@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
> >
> >               de = erofs_bread(&buf, dbstart, true);
> >               if (IS_ERR(de)) {
>
> I guess the correct way is that we shouldn't error out -EINTR.
ok.
>
> > -                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
> > -                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
> >                       err = PTR_ERR(de);
> > +                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
> > +                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
>
> you should just use %pe here directly.
but for this point:  and considering the earlier suggestion to "avoid
returning -EINTR"—
this would be somewhat redundant; it might look something like this:
if (IS_ERR(de)) {
            if (de != ERR_PTR(-EINTR))  //EINTR err also need break
while loop, it cannot be placed side-by-side within the first-level
`if` statement.
                      erofs_err(sb, "failed to readdir of logical
block %llu of nid %llu: %pe" ,
                                erofs_blknr(sb, dbstart),
EROFS_I(dir)->nid, de);   use %pe for de pointer
            err = PTR_ERR(de); //here we also get err(%d), so we get
use it directly
           break ;
    }
I think this might be a bit better?
 if (IS_ERR(de)) {
           err = PTR_ERR(de);
            if (err != ERR_PTR(-EINTR))
                          erofs_err(sb, "failed to readdir of logical
block %llu of nid %llu: %d" ,
                                    erofs_blknr(sb, dbstart),
EROFS_I(dir)->nid, err);
           break ;
    }
Any suggestions for these?
Thanks!
>
> >                       break;
> >               }
> >
> > diff --git a/fs/erofs/super.c b/fs/erofs/super.c
> > index e92a7fa90ae3..39f195e6d10b 100644
> > --- a/fs/erofs/super.c
> > +++ b/fs/erofs/super.c
> > @@ -273,7 +273,7 @@ static int erofs_read_superblock(struct super_block *sb)
> >
> >       data = erofs_read_metabuf(&buf, sb, 0, false);
> >       if (IS_ERR(data)) {
> > -             erofs_err(sb, "cannot read erofs superblock");
> > +             erofs_err(sb, "cannot read erofs superblock: %ld", PTR_ERR(data));
>
> same here.
>
> Thanks,
> Gao Xiang


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

* Re: [PATCH] erofs: print error code in erofs_err() of erofs_readdir
  2026-11-27  4:08 ` Gao Xiang
  2026-11-27  7:49   ` Zhiguo Niu
@ 2026-11-30  2:05   ` Zhiguo Niu
  2026-11-30 20:12     ` Gao Xiang
  1 sibling, 1 reply; 6+ messages in thread
From: Zhiguo Niu @ 2026-11-30  2:05 UTC (permalink / raw)
  To: xiang, chao, niuzhiguo84, ke.wang, zbestahu, jefflexu, dhavale,
	hongbohbli, guochunhai, linux-erofs, Zhiguo Niu

Hi Xiang,
Sorry, the contents of previous mail were a bit messy.

Gao Xiang <xiang@kernel.org> 于2026年11月27日周五 12:08写道:
>
> Hi Zhiguo,
>
> On Fri, Nov 27, 2026 at 10:56:36AM +0800, Zhiguo Niu wrote:
> > Under system stress tests, the following log frequently shows up:
> > erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> > block 0 of nid 124
> >
> > Without the err value, it is hard to tell whether the failure was
> > caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> > Print the error code so that we can get more clues to the problem.
> >
> > Also fix the similar codes in other erofs_err() call sites where a
> > real error code is available but not printed:
> > - erofs_read_superblock: "cannot read erofs superblock"
> > - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
> >   hotplug init
> > - z_erofs_readahead: "readahead error at folio ... @ nid ..."
> >
> > Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> > ---
> >  fs/erofs/dir.c   | 4 ++--
> >  fs/erofs/super.c | 2 +-
> >  fs/erofs/zdata.c | 8 ++++----
> >  3 files changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
> > index 4aa52a5f204a..69aea8a7c3dc 100644
> > --- a/fs/erofs/dir.c
> > +++ b/fs/erofs/dir.c
> > @@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
> >
> >               de = erofs_bread(&buf, dbstart, true);
> >               if (IS_ERR(de)) {
>
> I guess the correct way is that we shouldn't error out -EINTR.
OK
>
> > -                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
> > -                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
> >                       err = PTR_ERR(de);
> > +                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
> > +                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
>
> you should just use %pe here directly.

but for this point,  and also considering the earlier suggestion to "should not
error out -EINTR" ,this would be somewhat redundant; it might look
something like this:
if (IS_ERR(de)) {
    if (de != ERR_PTR(-EINTR))
        erofs_err(sb, "failed to readdir of logical block %llu of nid
%llu: %pe" , erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, de);
    err = PTR_ERR(de);
    break ;
}
//EINTR err also need break while loop, it cannot be placed side-by-side
within the first-level`if` statement.

I think this might be a bit better?
if (IS_ERR(de)) {
    err = PTR_ERR(de);
    if (err != ERR_PTR(-EINTR))
        erofs_err(sb, "failed to readdir of logical block %llu of nid
%llu: %d" , erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
    break ;
}
We need get the err by PTR_ERR(de) to return it , so we can print err
by %d directly?

Any suggestions for these?
Thanks!

>
> >                       break;
> >               }
> >
> > diff --git a/fs/erofs/super.c b/fs/erofs/super.c
> > index e92a7fa90ae3..39f195e6d10b 100644
> > --- a/fs/erofs/super.c
> > +++ b/fs/erofs/super.c
> > @@ -273,7 +273,7 @@ static int erofs_read_superblock(struct super_block *sb)
> >
> >       data = erofs_read_metabuf(&buf, sb, 0, false);
> >       if (IS_ERR(data)) {
> > -             erofs_err(sb, "cannot read erofs superblock");
> > +             erofs_err(sb, "cannot read erofs superblock: %ld", PTR_ERR(data));
>
> same here.
>
> Thanks,
> Gao Xiang


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

* Re: [PATCH] erofs: print error code in erofs_err() of erofs_readdir
  2026-11-30  2:05   ` Zhiguo Niu
@ 2026-11-30 20:12     ` Gao Xiang
  2026-12-01  1:19       ` Zhiguo Niu
  0 siblings, 1 reply; 6+ messages in thread
From: Gao Xiang @ 2026-11-30 20:12 UTC (permalink / raw)
  To: Zhiguo Niu
  Cc: xiang, chao, ke.wang, zbestahu, jefflexu, dhavale, hongbohbli,
	guochunhai, linux-erofs, Zhiguo Niu

On Mon, Nov 30, 2026 at 10:05:05AM +0800, Zhiguo Niu wrote:
> Hi Xiang,
> Sorry, the contents of previous mail were a bit messy.
> 
> Gao Xiang <xiang@kernel.org> 于2026年11月27日周五 12:08写道:
> >
> > Hi Zhiguo,
> >
> > On Fri, Nov 27, 2026 at 10:56:36AM +0800, Zhiguo Niu wrote:
> > > Under system stress tests, the following log frequently shows up:
> > > erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> > > block 0 of nid 124
> > >
> > > Without the err value, it is hard to tell whether the failure was
> > > caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> > > Print the error code so that we can get more clues to the problem.
> > >
> > > Also fix the similar codes in other erofs_err() call sites where a
> > > real error code is available but not printed:
> > > - erofs_read_superblock: "cannot read erofs superblock"
> > > - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
> > >   hotplug init
> > > - z_erofs_readahead: "readahead error at folio ... @ nid ..."
> > >
> > > Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> > > ---
> > >  fs/erofs/dir.c   | 4 ++--
> > >  fs/erofs/super.c | 2 +-
> > >  fs/erofs/zdata.c | 8 ++++----
> > >  3 files changed, 7 insertions(+), 7 deletions(-)
> > >
> > > diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
> > > index 4aa52a5f204a..69aea8a7c3dc 100644
> > > --- a/fs/erofs/dir.c
> > > +++ b/fs/erofs/dir.c
> > > @@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
> > >
> > >               de = erofs_bread(&buf, dbstart, true);
> > >               if (IS_ERR(de)) {
> >
> > I guess the correct way is that we shouldn't error out -EINTR.
> OK
> >
> > > -                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
> > > -                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
> > >                       err = PTR_ERR(de);
> > > +                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
> > > +                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
> >
> > you should just use %pe here directly.
> 
> but for this point,  and also considering the earlier suggestion to "should not
> error out -EINTR" ,this would be somewhat redundant; it might look
> something like this:
> if (IS_ERR(de)) {
>     if (de != ERR_PTR(-EINTR))
>         erofs_err(sb, "failed to readdir of logical block %llu of nid
> %llu: %pe" , erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, de);
>     err = PTR_ERR(de);
>     break ;
> }

This one is actually better since it could print error codes
in the pretty form.

Could you send another version so I can apply soon?

Thanks,
Gao Xiang


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

* Re: [PATCH] erofs: print error code in erofs_err() of erofs_readdir
  2026-11-30 20:12     ` Gao Xiang
@ 2026-12-01  1:19       ` Zhiguo Niu
  0 siblings, 0 replies; 6+ messages in thread
From: Zhiguo Niu @ 2026-12-01  1:19 UTC (permalink / raw)
  To: Zhiguo Niu, xiang, chao, ke.wang, zbestahu, jefflexu, dhavale,
	hongbohbli, guochunhai, linux-erofs, Zhiguo Niu

Gao Xiang <xiang@kernel.org> 于2026年12月1日周二 04:12写道:
>
> On Mon, Nov 30, 2026 at 10:05:05AM +0800, Zhiguo Niu wrote:
> > Hi Xiang,
> > Sorry, the contents of previous mail were a bit messy.
> >
> > Gao Xiang <xiang@kernel.org> 于2026年11月27日周五 12:08写道:
> > >
> > > Hi Zhiguo,
> > >
> > > On Fri, Nov 27, 2026 at 10:56:36AM +0800, Zhiguo Niu wrote:
> > > > Under system stress tests, the following log frequently shows up:
> > > > erofs: (device dm-8): erofs_readdir: failed to readdir of logical
> > > > block 0 of nid 124
> > > >
> > > > Without the err value, it is hard to tell whether the failure was
> > > > caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
> > > > Print the error code so that we can get more clues to the problem.
> > > >
> > > > Also fix the similar codes in other erofs_err() call sites where a
> > > > real error code is available but not printed:
> > > > - erofs_read_superblock: "cannot read erofs superblock"
> > > > - z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
> > > >   hotplug init
> > > > - z_erofs_readahead: "readahead error at folio ... @ nid ..."
> > > >
> > > > Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> > > > ---
> > > >  fs/erofs/dir.c   | 4 ++--
> > > >  fs/erofs/super.c | 2 +-
> > > >  fs/erofs/zdata.c | 8 ++++----
> > > >  3 files changed, 7 insertions(+), 7 deletions(-)
> > > >
> > > > diff --git a/fs/erofs/dir.c b/fs/erofs/dir.c
> > > > index 4aa52a5f204a..69aea8a7c3dc 100644
> > > > --- a/fs/erofs/dir.c
> > > > +++ b/fs/erofs/dir.c
> > > > @@ -83,9 +83,9 @@ static int erofs_readdir(struct file *f, struct dir_context *ctx)
> > > >
> > > >               de = erofs_bread(&buf, dbstart, true);
> > > >               if (IS_ERR(de)) {
> > >
> > > I guess the correct way is that we shouldn't error out -EINTR.
> > OK
> > >
> > > > -                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu",
> > > > -                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid);
> > > >                       err = PTR_ERR(de);
> > > > +                     erofs_err(sb, "failed to readdir of logical block %llu of nid %llu: %d",
> > > > +                               erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, err);
> > >
> > > you should just use %pe here directly.
> >
> > but for this point,  and also considering the earlier suggestion to "should not
> > error out -EINTR" ,this would be somewhat redundant; it might look
> > something like this:
> > if (IS_ERR(de)) {
> >     if (de != ERR_PTR(-EINTR))
> >         erofs_err(sb, "failed to readdir of logical block %llu of nid
> > %llu: %pe" , erofs_blknr(sb, dbstart), EROFS_I(dir)->nid, de);
> >     err = PTR_ERR(de);
> >     break ;
> > }
>
> This one is actually better since it could print error codes
> in the pretty form.
Hi Xiang,
Thanks for the confirmation.
>
> Could you send another version so I can apply soon?
OK.
>
> Thanks,
> Gao Xiang


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

end of thread, other threads:[~2026-12-01  1:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  2:56 [PATCH] erofs: print error code in erofs_err() of erofs_readdir Zhiguo Niu
2026-11-27  4:08 ` Gao Xiang
2026-11-27  7:49   ` Zhiguo Niu
2026-11-30  2:05   ` Zhiguo Niu
2026-11-30 20:12     ` Gao Xiang
2026-12-01  1:19       ` Zhiguo Niu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.