NFS: report how long an NFS file system has been mounted
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:15 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:15 +0000 (13:44 -0500)
commit67ec9f46b889bfb1ab0a4e307d53929d5f0692bf
treefe9cb38a7ead5bf4894b22bdc10af5d513695781
parent006ea73e5fa82915d0ac7a3f15ee7c688433236d
NFS: report how long an NFS file system has been mounted

Add a field in nfs_server to record a timestamp when a mount succeeds.
Report the number of seconds the file system has been mounted via
nfs_show_stats().

Test plan:
Mount an NFS file system, watch the mountstats reports and compare with
clock time.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
include/linux/nfs_fs_sb.h