NFSv4: Call update_changeattr() from _nfs4_proc_open only if a file was created
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 11 Jan 2017 13:47:00 +0000 (08:47 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 12 Jan 2017 20:51:17 +0000 (15:51 -0500)
commit2dfc61736482441993bfb7dfaa971113b53f107c
tree955be8de3632ee1172f8dc60b324156046df4e5d
parent4b09ec4b14a168bf2c687e1f598140c3c11e9222
NFSv4: Call update_changeattr() from _nfs4_proc_open only if a file was created

We don't want to invalidate the directory attribute and data cache unless we
know that a file was created, or the change attribute differs from the one
in our cache.

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