diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-14 19:23:07 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-14 19:23:07 -0400 |
commit | 921615f111108258820226a3258a047d9bf1d96a (patch) | |
tree | c78cd59a6b5c2eed79f6f9fa28498996f7147c33 /fs/nfs | |
parent | c055551e97e1ca00781bc41523f829e05a8afed7 (diff) | |
download | linux-3.10-921615f111108258820226a3258a047d9bf1d96a.tar.gz linux-3.10-921615f111108258820226a3258a047d9bf1d96a.tar.bz2 linux-3.10-921615f111108258820226a3258a047d9bf1d96a.zip |
NFS: Changes to inode->i_nlinks must set the NFS_INO_INVALID_ATTR flag
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 6554281e24a..de3f11e6234 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -1141,6 +1141,9 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) inode->i_gid != fattr->gid) invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL; + if (inode->i_nlink != fattr->nlink) + invalid |= NFS_INO_INVALID_ATTR; + inode->i_mode = fattr->mode; inode->i_nlink = fattr->nlink; inode->i_uid = fattr->uid; |