From: Trond Myklebust Date: Tue, 14 Oct 2008 23:23:07 +0000 (-0400) Subject: NFS: Changes to inode->i_nlinks must set the NFS_INO_INVALID_ATTR flag X-Git-Tag: v2.6.28-rc1~266^2^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=921615f111108258820226a3258a047d9bf1d96a;p=linux-2.6-omap-h63xx.git NFS: Changes to inode->i_nlinks must set the NFS_INO_INVALID_ATTR flag Signed-off-by: Trond Myklebust --- 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;