Re: [PATCH 06/14] block: lift setting the readahead size into the block layer

From
Johannes Thumshirn <hidden>
Date
2020-07-22 07:14:20
Also in
cgroups, dm-devel, linux-block, linux-fsdevel, linux-mm, lkml
Reply to
Christoph Hellwig, 2020-07-22
On 22/07/2020 08:27, Christoph Hellwig wrote:
+	q->backing_dev_info->ra_pages =
+		max(queue_io_opt(q) * 2 / PAGE_SIZE, VM_READAHEAD_PAGES);
Dumb question, wouldn't a '>> PAGE_SHIFT' be better instead of a potentially 
costly division?

Or aren't we caring at all as it's a) not in the fast-path and b) compilers 
can optimize it to a shift?
Thread (29 messages) 29 messages, 6 authors, last reply 2020-07-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help