On Mon, Nov 03, 2025 at 08:48:29AM -0800, Eric Biggers wrote: > > *inode_ret = inode; > > - *lblk_num_ret = ((u64)folio->index << (PAGE_SHIFT - inode->i_blkbits)) + > > + *lblk_num_ret = (((u64)folio->index << PAGE_SHIFT) >> inode->i_blkbits) > > +
This should be using folio_pos() instead of open coding the arithmetics.
