> @@ -1793,7 +1793,7 @@ int __block_write_full_page(struct inode *inode, struct page *page, > blocksize = bh->b_size; > bbits = block_size_bits(blocksize); > > - block = (sector_t)page->index << (PAGE_SHIFT - bbits); > + block = (sector_t)folio->index << (PAGE_SHIFT - bbits); Shouldn't the PAGE_SHIFT be folio_shift(folio) as you allow larger folios to be passed to this function in the later patches? > last_block = (i_size_read(inode) - 1) >> bbits; >