On 5/11/24 00:24, Matthew Wilcox wrote:
On Fri, May 10, 2024 at 12:29:03PM +0200, hare@xxxxxxxxxx wrote:
- block_in_file = (sector_t)folio->index << (PAGE_SHIFT - blkbits);
+ block_in_file = (sector_t)(((loff_t)folio->index << PAGE_SHIFT) >> blkbits);
block_in_file = folio_pos(folio) >> blkbits;
I know there was a better way. Will be fixing it up.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich