diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-28 21:46:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-28 21:46:30 +0200 |
commit | d9c7a87b35289e9a5ba94c097e861640d1357e6d (patch) | |
tree | c6851ed4484e0b98acb8992d8924eb9166bc151d /src/readahead-common.h | |
parent | c457e08335e2458821195efdb6b3dd1d106adff2 (diff) |
readahead: ignore replay events when collecting
Diffstat (limited to 'src/readahead-common.h')
-rw-r--r-- | src/readahead-common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/readahead-common.h b/src/readahead-common.h index 3f64f290a9..7add62613f 100644 --- a/src/readahead-common.h +++ b/src/readahead-common.h @@ -23,6 +23,9 @@ ***/ #include <sys/stat.h> +#include <sys/types.h> + +#include "macro.h" #define READAHEAD_FILE_SIZE_MAX (128*1024*1024) @@ -34,4 +37,11 @@ bool enough_ram(void); int open_inotify(void); +typedef struct ReadaheadShared { + pid_t collect; + pid_t replay; +} _packed_ ReadaheadShared; + +ReadaheadShared *shared_get(void); + #endif |