NFS: Fix incorrect size revalidation when holding a delegation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 4 Dec 2016 23:08:40 +0000 (18:08 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 4 Dec 2016 23:08:40 +0000 (18:08 -0500)
commit9310b224f2ecc8bb075b86d753a2f359e3e1ac85
tree9f7ab346783d43d70a6a148f3b46499ac20de054
parent10727772b93cc80c859b2e45bb32976d79b21990
NFS: Fix incorrect size revalidation when holding a delegation

We should only care about checking the attributes if the page cache
is marked as dubious (using NFS_INO_REVAL_PAGECACHE) and the
NFS_INO_REVAL_FORCED flag is set.

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