diff options
-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 6554281e24a2..de3f11e6234e 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) | |||
1141 | inode->i_gid != fattr->gid) | 1141 | inode->i_gid != fattr->gid) |
1142 | invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL; | 1142 | invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL; |
1143 | 1143 | ||
1144 | if (inode->i_nlink != fattr->nlink) | ||
1145 | invalid |= NFS_INO_INVALID_ATTR; | ||
1146 | |||
1144 | inode->i_mode = fattr->mode; | 1147 | inode->i_mode = fattr->mode; |
1145 | inode->i_nlink = fattr->nlink; | 1148 | inode->i_nlink = fattr->nlink; |
1146 | inode->i_uid = fattr->uid; | 1149 | inode->i_uid = fattr->uid; |