From: Richard Henwood Date: Wed, 6 Jul 2011 20:21:01 +0000 (-0400) Subject: LU-487 brw_[read|write] stats to correctly counts number of pages. X-Git-Tag: 2.1.0-RC0~28 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=6aea71f39238f370c02a2f293a01555cc653bd01 LU-487 brw_[read|write] stats to correctly counts number of pages. brw_[read|write] now correctly counts the number of pages. Before this change, the number of pages multiplied by the page size was counted. Change-Id: I069c18cf46c67285de1ae2afc48f7fb4ab92df3c Signed-off-by: Richard Henwood Reviewed-on: http://review.whamcloud.com/1056 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/lloop.c b/lustre/llite/lloop.c index 3b13aab..31fcb4b 100644 --- a/lustre/llite/lloop.c +++ b/lustre/llite/lloop.c @@ -240,7 +240,7 @@ static int do_bio_lustrebacked(struct lloop_device *lo, struct bio *head) ll_stats_ops_tally(ll_i2sbi(inode), (rw == WRITE) ? LPROC_LL_BRW_WRITE : LPROC_LL_BRW_READ, - page_count << PAGE_CACHE_SHIFT); + page_count); pvec->ldp_size = page_count << PAGE_CACHE_SHIFT; pvec->ldp_nr = page_count;