nfsd: fix NFSv4 time_delta attribute
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 25 Apr 2018 18:34:11 +0000 (14:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Jun 2018 14:41:11 +0000 (10:41 -0400)
commit16945141c3567bb8561de3677de1ec657675bb15
tree9b8bf154e464cc93a9ae085fbeb7c80437317de1
parentd6ebf5088f09472c1136cd506bdc27034a6763f8
nfsd: fix NFSv4 time_delta attribute

Currently we return the worst-case value of 1 second in the time delta
attribute.  That's not terribly useful.  Instead, return a value
calculated from the time granularity supported by the filesystem and the
system clock.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c