From dcc04ba0eb62b871b18788267b3137fefcf2cf9a Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 2 Mar 2009 10:26:17 +0000 Subject: [PATCH] - remove debugging bits - skip IO if page is uptodate --- lustre/osd/osd_io.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lustre/osd/osd_io.c b/lustre/osd/osd_io.c index fcfe02e..6b18fd7 100644 --- a/lustre/osd/osd_io.c +++ b/lustre/osd/osd_io.c @@ -505,12 +505,6 @@ static int osd_write_commit(const struct lu_env *env, struct dt_object *dt, continue; } - { - unsigned long *pp = (void *) page_address(lb[i].page); - if (*pp == 0) - CERROR("page %lu starts with 0\n", lb[i].page->index); - } - LASSERT(PageLocked(lb[i].page)); LASSERT(!PageWriteback(lb[i].page)); @@ -567,13 +561,8 @@ static int osd_read_prep(const struct lu_env *env, struct dt_object *dt, lb[i].rc = lb[i].len; m += lb[i].len; - if (PageUptodate(lb[i].page)) { - { - unsigned long *pp = (void *) page_address(lb[i].page); - if (*pp == 0) - CERROR("page %lu starts with 0\n", lb[i].page->index); - } - } + if (PageUptodate(lb[i].page)) + continue; filter_iobuf_add_page(iobuf, lb[i].page); } -- 1.8.3.1