diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-04 00:13:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-04 00:13:20 +0200 |
commit | 6de338a2d9904ef5a67552b024491700523074a3 (patch) | |
tree | 5d8807c0bedbd8a7feee1c5bb344bfb20745caaa /src/readahead/readahead-common.h | |
parent | 37099707e26ef2c6d215f6e7f17dd46bf6aad586 (diff) |
readhead: temporarily lower the kernel's read_ahead_kb setting while collecting
While collecting readahead data we want to know exactly what userspace
accesses unblurred by the kernel's read_ahead_kb. Hence lower this
during collection, and raise it afterwards.
This is mostly based on ideas and code by Auke Kok.
Diffstat (limited to 'src/readahead/readahead-common.h')
-rw-r--r-- | src/readahead/readahead-common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/readahead/readahead-common.h b/src/readahead/readahead-common.h index b4eab71b1a..9962dd527a 100644 --- a/src/readahead/readahead-common.h +++ b/src/readahead/readahead-common.h @@ -45,6 +45,9 @@ typedef struct ReadaheadShared { ReadaheadShared *shared_get(void); -int bump_request_nr(const char *p); +int block_bump_request_nr(const char *p); + +int block_get_readahead(const char *p, uint64_t *bytes); +int block_set_readahead(const char *p, uint64_t bytes); #endif |