Re: [PATCH 1/2] mm/readahead: add kerneldoc for read_pages
From: Andrew Morton
Date: Tue May 12 2026 - 22:14:46 EST
On Tue, 12 May 2026 22:05:34 +0100 Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> On Tue, May 12, 2026 at 01:31:35PM -0700, Frederick Mayle wrote:
> > Formalize one of the invariants provided by the current implementation
> > so that callers can depend on it, as discussed in [1].
>
> We don't normally write kerneldoc for static functions. I'm not sure
> why Andrew told you to do this. I have no objection to adding
> documentation, but I don't think it should be marked as kerneldoc.
> And if it's not kerneldoc, it doesn't have to be written in such a
> stifling style.
I'm OK either way. The main point here is that [2/2] relies on
unobvious and possibly fragile behaviour of read_pages().