* [PATCH] io accounting minor fix
[not found] <20061204085436.GA6602@mail.ustc.edu.cn>
@ 2006-12-04 8:54 ` Fengguang Wu
0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2006-12-04 8:54 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Account only successful nfs/fuse reads.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
---
--- linux-2.6.19-rc6-mm2.orig/mm/readahead.c
+++ linux-2.6.19-rc6-mm2/mm/readahead.c
@@ -242,7 +242,6 @@ int read_cache_pages(struct address_spac
page_cache_release(page);
continue;
}
- task_io_account_read(PAGE_CACHE_SIZE);
ret = filler(data, page);
if (!pagevec_add(&lru_pvec, page)) {
cond_resched();
@@ -252,6 +251,7 @@ int read_cache_pages(struct address_spac
put_pages_list(pages);
break;
}
+ task_io_account_read(PAGE_CACHE_SIZE);
}
pagevec_lru_add(&lru_pvec);
return ret;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-04 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20061204085436.GA6602@mail.ustc.edu.cn>
2006-12-04 8:54 ` [PATCH] io accounting minor fix Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox