From: David Howells <dhowells@redhat.com>
To: Advait Dhamorikar <advaitdhamorikar@gmail.com>
Cc: dhowells@redhat.com, Marc Dionne <marc.dionne@auristor.com>,
linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH-next] afs: Remove logically dead code
Date: Mon, 18 Nov 2024 15:18:19 +0000 [thread overview]
Message-ID: <883923.1731943099@warthog.procyon.org.uk> (raw)
In-Reply-To: <20241116063613.15120-1-advaitdhamorikar@gmail.com>
Advait Dhamorikar <advaitdhamorikar@gmail.com> wrote:
> iterate_folioq(&iter, iov_iter_count(&iter), dvnode, ctx,
> afs_dir_iterate_step);
>
> - if (ret == -ESTALE)
> - afs_invalidate_dir(dvnode, afs_dir_invalid_iter_stale);
> return ret;
Removing this is the wrong thing to do. However, you're correct that ret is
never set to -ESTALE.
A better solution, I think, is to check the result of iterate_folioq(),
invalidating the dir and returning -ESTALE if 0 and if the iterator count is
not 0.
David
next prev parent reply other threads:[~2024-11-18 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 6:36 Advait Dhamorikar
2024-11-18 15:18 ` David Howells [this message]
2024-11-18 19:16 ` Advait Dhamorikar
2024-11-18 16:09 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=883923.1731943099@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=advaitdhamorikar@gmail.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®