Re: [PATCH 02/14] block: refactor disk_update_readahead

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

 



On Sun, Jan 28, 2024 at 06:59:31PM -0800, Bart Van Assche wrote:
>> +	/*
>> +	 * For read-ahead of large files to be effective, we need to read ahead
>> +	 * at least twice the optimal I/O size.
>> +	 */
>> +	bdi->ra_pages = max(lim->io_opt * 2 / PAGE_SIZE, VM_READAHEAD_PAGES);
>> +	bdi->io_pages = lim->max_sectors >> (PAGE_SHIFT - 9);
>> +}
>
> Would this be a good opportunity to change (PAGE_SHIFT - 9) into
> PAGE_SECTORS_SHIFT?

If I have to respin for some reason I'll include it.  Otherwise feel
free to send a trivial follow on patch.





[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux