summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src/read-ahead.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-06-11 01:45:45 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-11 06:29:16 -0700
commitbd2b529fd3d1965ccfe8cc03f9223ed1e98f7e79 (patch)
treeea250abf65d1ab0d96faf82bafa08be2826114eb /xlators/performance/read-ahead/src/read-ahead.h
parentb930b38a2ab16b3d25b4bf2441e584f7fc882a17 (diff)
read-ahead: handle memory allocation failures
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/performance/read-ahead/src/read-ahead.h')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.h b/xlators/performance/read-ahead/src/read-ahead.h
index 5513b2690..0f5add75b 100644
--- a/xlators/performance/read-ahead/src/read-ahead.h
+++ b/xlators/performance/read-ahead/src/read-ahead.h
@@ -124,9 +124,11 @@ typedef struct ra_fill ra_fill_t;
ra_page_t *
ra_page_get (ra_file_t *file,
off_t offset);
+
ra_page_t *
ra_page_create (ra_file_t *file,
off_t offset);
+
void
ra_page_fault (ra_file_t *file,
call_frame_t *frame,
@@ -134,6 +136,7 @@ ra_page_fault (ra_file_t *file,
void
ra_wait_on_page (ra_page_t *page,
call_frame_t *frame);
+
ra_waitq_t *
ra_page_wakeup (ra_page_t *page);
@@ -149,6 +152,7 @@ ra_page_purge (ra_page_t *page);
void
ra_frame_return (call_frame_t *frame);
+
void
ra_frame_fill (ra_page_t *page,
call_frame_t *frame);