]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add and use readahead_batch_length
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 21 Mar 2021 21:03:11 +0000 (21:03 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:19 +0000 (17:25 +0200)
commit2fc26381224f6091ebe71a6a15d604377fe8d03a
treef2451c3cfcbe388f19a92e1724eba0e428f9638d
parent959571568a44e7d50b17dfba921edf36b7bb4069
btrfs: add and use readahead_batch_length

Implement readahead_batch_length() to determine the number of bytes in
the current batch of readahead pages and use it in btrfs. Also use the
readahead_pos to get the offset.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
include/linux/pagemap.h