On Wed, May 03, 2023 at 06:38:11PM +0000, John Garry wrote: > + unsigned int size = (atomic_write_max_segments - 1) * > + (PAGE_SIZE / SECTOR_SIZE); Maybe use PAGE_SECTORS instead of recalculating it.
On Wed, May 03, 2023 at 06:38:11PM +0000, John Garry wrote: > + unsigned int size = (atomic_write_max_segments - 1) * > + (PAGE_SIZE / SECTOR_SIZE); Maybe use PAGE_SECTORS instead of recalculating it.