diff options
| author | Amar Tumballi <amarts@redhat.com> | 2012-03-20 17:22:24 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@redhat.com> | 2012-03-22 16:40:27 -0700 | 
| commit | 9d3af972f516b6ba38d2736ce2016e34a452d569 (patch) | |
| tree | 1dcdc620748a42cdfb5464c3adaae5a4a3a6f869 /xlators/performance/read-ahead/src/page.c | |
| parent | afe542eca18888463798747d2a95e5a9d239a4a0 (diff) | |
core: adding extra data for fops
with this change, the xlator APIs will have a dictionary as extra
argument, which is passed between all the layers. This can be
utilized for overloading in some of the operations.
Change-Id: I58a8186b3ef647650280e63f3e5e9b9de7827b40
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 782265
Reviewed-on: http://review.gluster.com/2960
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/performance/read-ahead/src/page.c')
| -rw-r--r-- | xlators/performance/read-ahead/src/page.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/performance/read-ahead/src/page.c b/xlators/performance/read-ahead/src/page.c index 52b3fdaf367..bc8bb8d58d0 100644 --- a/xlators/performance/read-ahead/src/page.c +++ b/xlators/performance/read-ahead/src/page.c @@ -142,7 +142,8 @@ ra_waitq_return (ra_waitq_t *waitq)  int  ra_fault_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                int32_t op_ret, int32_t op_errno, struct iovec *vector, -              int32_t count, struct iatt *stbuf, struct iobref *iobref) +              int32_t count, struct iatt *stbuf, struct iobref *iobref, +              dict_t *xdata)  {          ra_local_t   *local          = NULL;          off_t         pending_offset = 0; @@ -278,7 +279,7 @@ ra_page_fault (ra_file_t *file, call_frame_t *frame, off_t offset)          STACK_WIND (fault_frame, ra_fault_cbk,                      FIRST_CHILD (fault_frame->this),                      FIRST_CHILD (fault_frame->this)->fops->readv, -                    file->fd, file->page_size, offset, 0); +                    file->fd, file->page_size, offset, 0, NULL);          return; @@ -447,7 +448,7 @@ ra_frame_unwind (call_frame_t *frame)          file = (ra_file_t *)(long)tmp_file;          STACK_UNWIND_STRICT (readv, frame, local->op_ret, local->op_errno, -                             vector, count, &file->stbuf, iobref); +                             vector, count, &file->stbuf, iobref, NULL);          iobref_unref (iobref);          pthread_mutex_destroy (&local->local_lock);  | 
