From 6f1fc5fd03e9cfa7dd590210382cdc4da9f2a6ab Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 29 Jun 2005 23:43:07 +0000 Subject: [PATCH] Branch b1_4 Further cray portals compile fix. --- lustre/ost/ost_handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 185b202..8615d7c 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -352,16 +352,16 @@ static __u32 ost_checksum_bulk(struct ptlrpc_bulk_desc *desc) int len = desc->bd_iov[i].iov_len; #else struct page *page = desc->bd_iov[i].kiov_page; - char *ptr = kmap(page) + (desc->bd_iov[i].kiov_offset & - ~PAGE_MASK); + int off = desc->bd_iov[i].kiov_offset & ~PAGE_MASK; + char *ptr = kmap(page) + off; int len = desc->bd_iov[i].kiov_len; #endif cksum = crc32_le(cksum, ptr, len); #ifndef CRAY_PORTALS kunmap(page); + LL_CDEBUG_PAGE(D_PAGE, page, "off %d checksum %x\n", off,cksum); #endif - LL_CDEBUG_PAGE(D_PAGE, page, "idx %d checksum %x\n", i, cksum); } return cksum; -- 1.8.3.1