io-accounting-read-accounting cifs fix
PATCH 7/13 io-accounting-read-accounting cifs fix
From: Andrew Morton <[email protected]>
CIFS implements ->readpages and doesn't use read_cache_pages(). So wire the read IO accounting up within CIFS.
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 Steven French <[email protected]>
Cc David Wright <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/cifs/file.c | 2 ++ 1 file changed, 2 insertions(+)
fs/cifs/file.c renamed from fs/cifs/file.c~io-accounting-read-accounting-cifs-fix +2 -0
@@ -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 *fcFYI (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 */ +
_