Re: [PATCH v2 3/8] fs/mpage: avoid negative shift for large blocksize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 04, 2025 at 03:12:04PM -0800, Luis Chamberlain wrote:
> From: Hannes Reinecke <hare@xxxxxxxxxx>
> 
> For large blocksizes the number of block bits is larger than PAGE_SHIFT,
> so use instead use folio_pos(folio) >> blkbits to calculate the sector

"so calculate the sector number from the byte offset instead"

> number. This is required to enable large folios with buffer-heads.
> 
> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Signed-off-by: Hannes Reinecke <hare@xxxxxxxxxx>

Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux