mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 07/13] io-accounting-read-accounting cifs fix
@ 2006-12-08 11:52 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2006-12-08 11:52 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, balbir, csturtiv, daw, guillaume.thouvenin, jlan, nagar,
	sfrench, tee

From: Andrew Morton <akpm@osdl.org>

CIFS implements ->readpages and doesn't use read_cache_pages().  So wire the
read IO accounting up within CIFS.

Cc: Jay Lan <jlan@sgi.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Chris Sturtivant <csturtiv@sgi.com>
Cc: Tony Ernst <tee@sgi.com>
Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
Cc: Steven French <sfrench@us.ibm.com>
Cc: David Wright <daw@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 fs/cifs/file.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN fs/cifs/file.c~io-accounting-read-accounting-cifs-fix fs/cifs/file.c
--- a/fs/cifs/file.c~io-accounting-read-accounting-cifs-fix
+++ a/fs/cifs/file.c
@@ -29,6 +29,7 @@
 #include <linux/pagevec.h>
 #include <linux/smp_lock.h>
 #include <linux/writeback.h>
+#include <linux/task_io_accounting_ops.h>
 #include <linux/delay.h>
 #include <asm/div64.h>
 #include "cifsfs.h"
@@ -1813,6 +1814,7 @@ static int cifs_readpages(struct file *f
 			cFYI(1, ("Read error in readpages: %d", rc));
 			break;
 		} else if (bytes_read > 0) {
+			task_io_account_read(bytes_read);
 			pSMBr = (struct smb_com_read_rsp *)smb_read_data;
 			cifs_copy_cache_pages(mapping, page_list, bytes_read,
 				smb_read_data + 4 /* RFC1001 hdr */ +
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-08 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-08 11:52 [patch 07/13] io-accounting-read-accounting cifs fix akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®