diff options
author | Andy Adamson <andros@netapp.com> | 2012-05-24 13:13:24 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-24 16:15:48 -0400 |
commit | 2701d086dbfca03b2d28b25c6dc11dd78d0e26ad (patch) | |
tree | 69f81dd2a979600cd3ff4f1861c6d7ef5c25b1ed /fs/nfs/pnfs.c | |
parent | 82be417aa37c05116e310b0f2171187ea389f89b (diff) |
NFSv4.1 add nfs_inode book keeping for mdsthreshold
Keep track of the number of bytes read or written via buffered, direct, and
mem-mapped i/o for use by mdsthreshold size_io hints.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index cbcb6aea58a3..6620606f2687 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -395,6 +395,9 @@ mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, | |||
395 | dprintk("%s:Begin lo %p\n", __func__, lo); | 395 | dprintk("%s:Begin lo %p\n", __func__, lo); |
396 | 396 | ||
397 | if (list_empty(&lo->plh_segs)) { | 397 | if (list_empty(&lo->plh_segs)) { |
398 | /* Reset MDS Threshold I/O counters */ | ||
399 | NFS_I(lo->plh_inode)->write_io = 0; | ||
400 | NFS_I(lo->plh_inode)->read_io = 0; | ||
398 | if (!test_and_set_bit(NFS_LAYOUT_DESTROYED, &lo->plh_flags)) | 401 | if (!test_and_set_bit(NFS_LAYOUT_DESTROYED, &lo->plh_flags)) |
399 | put_layout_hdr_locked(lo); | 402 | put_layout_hdr_locked(lo); |
400 | return 0; | 403 | return 0; |