lkml.org 
[lkml]   [2023]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC 06/16] block: Limit atomic writes according to bio and queue limits
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.

\
 
 \ /
  Last update: 2023-05-03 20:54    [W:0.229 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site