summaryrefslogtreecommitdiffstats
path: root/xlators/performance/md-cache
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-07-08 14:25:35 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-07-11 06:48:34 -0700
commit62f826de85489f47da506e0d20e9ed349278d597 (patch)
tree0d5fd53de83d4a8a5758685a247d4cdf98a54fcf /xlators/performance/md-cache
parentc341a95bd3e6ae81cf32620950bac33b27c1e033 (diff)
"md-cache: Enable caching of stat fetched from readdirp
Patch http://review.gluster.org/11894 removed readdirp fop for md-cache, but there is no mention of exact xlator which was failing because of this. As mentioned by Rafi(author of patch 11894) tiering and svc doesn't really need this as the inode_ctx is populated in readdirp_cbk. Hence reverting this commit. This reverts commit c8c9308134ae4ce24c630a1b0ccfcf4e8f9b0fe7. Change-Id: Ib8d00b3f129596f3a54984f839199175f5c9b55b BUG: 1211863 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/14879 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Zhou Zhengping <johnzzpcrystal@gmail.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/performance/md-cache')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index c1aef210e1d..1ad9e8ebda1 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -2068,8 +2068,7 @@ int
mdc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int op_ret, int op_errno, gf_dirent_t *entries, dict_t *xdata)
{
- gf_dirent_t *entry = NULL;
- struct md_cache *mdc = NULL;
+ gf_dirent_t *entry = NULL;
if (op_ret <= 0)
goto unwind;
@@ -2077,8 +2076,6 @@ mdc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
list_for_each_entry (entry, &entries->list, list) {
if (!entry->inode)
continue;
- if (mdc_inode_ctx_get (this, entry->inode, &mdc) != 0)
- continue;
mdc_inode_iatt_set (this, entry->inode, &entry->d_stat);
mdc_inode_xatt_set (this, entry->inode, entry->dict);
}