On Fri, Oct 30, 2020 at 12:12 AM Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> wrote: > On Thu, Oct 29, 2020 at 10:16:57PM +0200, Andy Shevchenko wrote: > > On Wed, Oct 28, 2020 at 04:11:05PM +0800, Bingbu Cao wrote: ... > > I just realized I can rewrite this as: > > > > remaining = offset_in_page(remaining) ?: PAGE_SIZE; > > entry[1].second_entry.last_page_available_bytes = remaining - 1; > > > > Would it work for you? > > Looks good to me. Have you got v2? -- With Best Regards, Andy Shevchenko