[PATCH v4 23/33] afs: Use netfslib for directories

David Howells dhowells at redhat.com
Tue Nov 19 03:35:19 AEDT 2024


Kees Bakker <kees at ijzerbout.nl> wrote:

> > +	iterate_folioq(&iter, iov_iter_count(&iter), dvnode, ctx,
> > +		       afs_dir_iterate_step);
> > +
> > +	if (ret == -ESTALE)
> This is dead code because `ret` is set to 0 and never changed.
> > +		afs_invalidate_dir(dvnode, afs_dir_invalid_iter_stale);

Yeah.  I posted a modification for this in response to someone else.  ESTALE
needs to be set if iterate_folioq() returns 0.

David



More information about the Linux-erofs mailing list