NFS: Fix up page writeback accounting
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Oct 2015 15:36:38 +0000 (11:36 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Oct 2015 19:43:07 +0000 (15:43 -0400)
commit40f90271a835478e5910dc84f32b8e25885419a4
tree327ea2eba8ddb6fd5da5b180cc410e30d4e5f7c0
parent5634347dee31373a8faf084f4cdbf6d5ea0b03a4
NFS: Fix up page writeback accounting

Currently, we are crediting all the calls to nfs_writepages_callback()
(i.e. the nfs_writepages() callback) to nfs_writepage(). Aside from
being inconsistent with the behaviour of the equivalent readpage/readpages
accounting, this also means that we cannot distinguish between bulk writes
and single page writebacks (which confuses the 'nfsiostat -p' tool).

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c