]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 6 Apr 2021 19:42:42 +0000 (21:42 +0200)
commit1e9d38e421fb4cade36ef8de13d043098b70b8b9
tree0ecd6adc43c4be2b6d2e67b42cf0210a903523e5
parentc98441d24a693de9abe83442129648a2307c0632
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