From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425431AbWLHLy2 (ORCPT ); Fri, 8 Dec 2006 06:54:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1425437AbWLHLy1 (ORCPT ); Fri, 8 Dec 2006 06:54:27 -0500 Received: from smtp.osdl.org ([65.172.181.25]:52476 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425431AbWLHLyZ (ORCPT ); Fri, 8 Dec 2006 06:54:25 -0500 Message-Id: <200612081152.kB8BqTf4019768@shell0.pdx.osdl.net> Subject: [patch 07/13] io-accounting-read-accounting cifs fix To: linux-kernel@vger.kernel.org Cc: akpm@osdl.org, balbir@in.ibm.com, csturtiv@sgi.com, daw@sgi.com, guillaume.thouvenin@bull.net, jlan@sgi.com, nagar@watson.ibm.com, sfrench@us.ibm.com, tee@sgi.com From: akpm@osdl.org Date: Fri, 08 Dec 2006 03:52:29 -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Morton CIFS implements ->readpages and doesn't use read_cache_pages(). So wire the read IO accounting up within CIFS. Cc: Jay Lan Cc: Shailabh Nagar Cc: Balbir Singh Cc: Chris Sturtivant Cc: Tony Ernst Cc: Guillaume Thouvenin Cc: Steven French Cc: David Wright Signed-off-by: Andrew Morton --- 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 #include #include +#include #include #include #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 */ + _