]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: ensure that attrcache is revalidated after a SETATTR
authorJeff Layton <jlayton@poochiereds.net>
Wed, 25 Nov 2015 18:50:45 +0000 (13:50 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 25 Nov 2015 20:24:30 +0000 (15:24 -0500)
commitb6b17c382223cc627bf9da0ee526a2c0bfc078d7
tree87cb8d6bb09b7be3cdfbb1bafd00958ee9fce8ce
parent5a3f24c3881c8a8fc497b47620e6cf97d3b9557c
nfs: ensure that attrcache is revalidated after a SETATTR

If we get no post-op attributes back from a SETATTR operation, then no
attributes will of course be updated during the call to
nfs_update_inode.

We know however that the attributes are invalid at that point, since we
just changed some of them. At the very least, the ctime will be bogus.
If we get no post-op attributes back on the call, mark the attrcache
invalid to reflect that fact.

Reviewed-by: Steve French <steve.french@primarydata.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c