NFS: Don't declare inode uptodate unless all attributes were checked
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Apr 2014 14:07:57 +0000 (10:07 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 16 Apr 2014 03:24:43 +0000 (23:24 -0400)
commit43b6535e717d2f656f71d9bd16022136b781c934
treee54ce1a679c198a1ddde4d82abdd7ffc0e8a5a84
parent4dfc7fdb9e261d77818616782ae1841a80e0fc83
NFS: Don't declare inode uptodate unless all attributes were checked

Fix a bug, whereby nfs_update_inode() was declaring the inode to be
up to date despite not having checked all the attributes.
The bug occurs because the temporary variable in which we cache
the validity information is 'sanitised' before reapplying to
nfsi->cache_validity.

Reported-by: Kinglong Mee <kinglongmee@gmail.com>
Cc: stable@vger.kernel.org # 3.5+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c