From 6ae79e6df6fbc89ffbd6badb3f84d6a2b513fe83 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Tue, 19 Jan 2021 15:33:35 +0100 Subject: libblock: Add rtems_bdbuf_peek() Adds a peek function that allows (for example) a file system to suggest the next blocks that should be used for read ahead. This can increase the read speed of fragmented files. Update #3689 --- testsuites/fstests/fsdosfswrite01/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/fstests') diff --git a/testsuites/fstests/fsdosfswrite01/init.c b/testsuites/fstests/fsdosfswrite01/init.c index e5d8e5d6dd..64b43b7919 100644 --- a/testsuites/fstests/fsdosfswrite01/init.c +++ b/testsuites/fstests/fsdosfswrite01/init.c @@ -129,6 +129,7 @@ static void test_normal_file_write( .read_hits = 0, .read_misses = 0, .read_ahead_transfers = 0, + .read_ahead_peeks = 0, .read_blocks = 0, .read_errors = 0, .write_transfers = 1, @@ -139,6 +140,7 @@ static void test_normal_file_write( .read_hits = 3, .read_misses = 2, .read_ahead_transfers = 0, + .read_ahead_peeks = 0, .read_blocks = 2, .read_errors = 0, .write_transfers = 1, @@ -149,6 +151,7 @@ static void test_normal_file_write( .read_hits = 3, .read_misses = 3, .read_ahead_transfers = 0, + .read_ahead_peeks = 0, .read_blocks = 3, .read_errors = 0, .write_transfers = 1, -- cgit v1.2.3