[PATCH 1/3] mm: Add folio_zero_tail() and use it in ext4
Andreas Grünbacher
andreas.gruenbacher at gmail.com
Thu Nov 9 11:12:15 AEDT 2023
Andrew,
Andrew Morton <akpm at linux-foundation.org> schrieb am Do., 9. Nov. 2023, 00:06:
> > +
> > + if (folio_test_highmem(folio)) {
> > + size_t max = PAGE_SIZE - offset_in_page(offset);
> > +
> > + while (len > max) {
>
> Shouldn't this be `while (len)'? AFAICT this code can fail to clear
> the final page.
not sure what you're seeing there, but this looks fine to me.
Thanks,
Andreas
More information about the Linux-erofs
mailing list