orangefs: Fix revalidate.
authorMartin Brandenburg <martin@omnibond.com>
Thu, 28 Jan 2016 15:19:40 +0000 (10:19 -0500)
committerMike Marshall <hubcap@omnibond.com>
Thu, 28 Jan 2016 20:08:40 +0000 (15:08 -0500)
commit99109822f5cbe6d530eb55193b25aa5348f6134d
tree5545d59702d9c2c2a28af01849a35f380ce01980
parent394f647e3ad073dab19ba081501e4a0ca05302c4
orangefs: Fix revalidate.

Previously, it would update a live inode. This was fixed, but it did not
ever check that the inode attributes in the dcache are correct. This
checks all inode attributes and rejects any that are not correct, which
causes a lookup and thus a new getattr.

Perhaps inode_operations->permission should replace or augment some of
this.

There is no actual caching, and this does a rather excessive amount of
network operations back to the filesystem server.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/dcache.c
fs/orangefs/file.c
fs/orangefs/inode.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-utils.c