🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
2 messages
2 total messages Started by Christian Couder Tue, 27 Oct 2026 12:36
Re: [PATCH v2 5/6] odb/source-files: avoid stat'ing already-known alternates
#1619
Author: Christian Couder
Date: Tue, 27 Oct 2026 12:36
16 lines
12429 bytes
On Fri, Oct 23, 2026 at 2:48 PM Patrick Steinhardt <ps@pks.im> wrote:
>
> When adding alternates we first check whether the alternate exists
> before checking whether we already know about it. This results in a
> useless stat(3p) syscall in the case where we already track the
> alternate.
>
> Reorder the logic so that we first check whether we know the alternate
> already before checking whether its directory exists to avoid the
> syscall.

Does avoiding the syscall means not printing the "object directory %s
does not exist" error then, when we know the alternates but its
directory was removed?
Re: [PATCH v2 5/6] odb/source-files: avoid stat'ing already-known alternates
#1631
Author: Christian Couder
Date: Tue, 27 Oct 2026 14:31
23 lines
12701 bytes
On Tue, Oct 27, 2026 at 2:14 PM Patrick Steinhardt <ps@pks.im> wrote:
>
> On Tue, Oct 27, 2026 at 01:36:35PM +0100, Christian Couder wrote:

> > Does avoiding the syscall means not printing the "object directory %s
> > does not exist" error then, when we know the alternates but its
> > directory was removed?
>
> It depends. When trying to add an alternate that doesn't exist we'll
> continue to print this error. But when such an alternate disappears
> after we have already added it to the object database then we indeed
> won't print this error anymore.
>
> I don't think this really is a huge issue by itself, as it feels
> sufficiently niche to not really matter, and the end result itself
> wouldn't change. But let me know in case you disagree.

I don't disagree, but maybe the change deserves to be mentioned in the
commit message.

Thanks.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads