[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZlnZMiBJ6Fapor5G@infradead.org>
Date: Fri, 31 May 2024 07:05:38 -0700
From: Christoph Hellwig <hch@...radead.org>
To: "Darrick J. Wong" <djwong@...nel.org>
Cc: Christoph Hellwig <hch@...radead.org>,
Zhang Yi <yi.zhang@...weicloud.com>, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
brauner@...nel.org, david@...morbit.com, chandanbabu@...nel.org,
jack@...e.cz, willy@...radead.org, yi.zhang@...wei.com,
chengzhihao1@...wei.com, yukuai3@...wei.com
Subject: Re: [RFC PATCH v4 1/8] iomap: zeroing needs to be pagecache aware
On Fri, May 31, 2024 at 07:03:58AM -0700, Darrick J. Wong wrote:
> > + /*
> > + * XXX: It would be nice if we could get the offset of
> > + * the next entry in the pagecache so that we don't have
> > + * to iterate one page at a time here.
> > + */
> > + offset = offset_in_page(pos);
> > + if (bytes > PAGE_SIZE - offset)
> > + bytes = PAGE_SIZE - offset;
>
> Why is it PAGE_SIZE here and not folio_size() like below?
>
> (I know you're just copying the existing code; I'm merely wondering if
> this is some minor bug.)
See the comment just above :)
Powered by blists - more mailing lists