summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-02 03:08:04 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-06 06:35:26 -0700
commit4b624979ce50a4fbdb34bc93241b6591d64b7f0a (patch)
tree065f92aad7fc0e51b8c3292927229bd837cb0527 /xlators
parent2bcd6ffad9d9445b90627a219ccfff9535a22c6a (diff)
stat-prefetch: Port stat-prefetching to readdirp fop
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 292 (Separate readdirp functionality from readdir fop) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=292
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index e2771314a7a..eaf2218c016 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -661,7 +661,7 @@ sp_readdir (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
}
STACK_WIND (frame, sp_readdir_cbk, FIRST_CHILD(this),
- FIRST_CHILD(this)->fops->readdir, fd, size, off);
+ FIRST_CHILD(this)->fops->readdirp, fd, size, off);
return 0;
@@ -1718,6 +1718,7 @@ fini (xlator_t *this)
struct xlator_fops fops = {
.lookup = sp_lookup,
.readdir = sp_readdir,
+ .readdirp = sp_readdir,
.open = sp_open,
.create = sp_create,
.opendir = sp_opendir,