summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-04-12 10:30:24 +0000
committerAnand Avati <avati@gluster.com>2011-04-13 00:38:47 -0700
commitba365f725a91bcd3dcfae1d8311f9f148ce69055 (patch)
tree9179bd2f6bbb0f0d0ce3ba54a7cfe7edaa70c46f /xlators/performance/io-cache/src
parentd7cba3b0bb4867e02a5999f830e5315cd7022520 (diff)
remove excessive logs due to log enhancement
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/performance/io-cache/src')
-rw-r--r--xlators/performance/io-cache/src/page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/page.c b/xlators/performance/io-cache/src/page.c
index b50b245ac..0721f5f04 100644
--- a/xlators/performance/io-cache/src/page.c
+++ b/xlators/performance/io-cache/src/page.c
@@ -85,7 +85,8 @@ ioc_page_destroy (ioc_page_t *page)
GF_VALIDATE_OR_GOTO ("io-cache", page, out);
- page_size = iobref_size (page->iobref);
+ if (page->iobref)
+ page_size = iobref_size (page->iobref);
if (page->waitq) {
/* frames waiting on this page, do not destroy this page */