mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] io-accounting-read-accounting nfs fix
nfs's ->readpages uses read_cache_pages(). Wire it up there. [[email protected]: account only successful nfs/fuse reads] Cc: Jay Lan <[email protected]> Cc: Shailabh Nagar <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Chris Sturtivant <[email protected]> Cc: Tony Ernst <[email protected]> Cc: Guillaume Thouvenin <[email protected]> Cc: David Wright <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
faccbd4b26
commit
8bde37f08f
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/backing-dev.h>
|
||||
#include <linux/task_io_accounting_ops.h>
|
||||
#include <linux/pagevec.h>
|
||||
|
||||
void default_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
|
||||
|
|
@ -151,6 +152,7 @@ int read_cache_pages(struct address_space *mapping, struct list_head *pages,
|
|||
put_pages_list(pages);
|
||||
break;
|
||||
}
|
||||
task_io_account_read(PAGE_CACHE_SIZE);
|
||||
}
|
||||
pagevec_lru_add(&lru_pvec);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue