diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-01 14:57:56 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-14 09:36:29 -0400 |
commit | 1301e421b75b90b1a6101961b3aca2d91a9a0599 (patch) | |
tree | 4c24b18988db5beaa630ca5646d7cd25f72bc770 /fs/nfs/dir.c | |
parent | 82eae5a432cb2d50d7ea51428dcad7894e4165fe (diff) | |
download | lwn-1301e421b75b90b1a6101961b3aca2d91a9a0599.tar.gz lwn-1301e421b75b90b1a6101961b3aca2d91a9a0599.zip |
NFSv4: link must update the inode nlink.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index d2835d211a73..5c25c8cc037a 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1711,7 +1711,7 @@ static void nfs_drop_nlink(struct inode *inode) NFS_I(inode)->attr_gencount = nfs_inc_attr_generation_counter(); nfs_set_cache_invalid( inode, NFS_INO_INVALID_CHANGE | NFS_INO_INVALID_CTIME | - NFS_INO_INVALID_NLINK | NFS_INO_REVAL_FORCED); + NFS_INO_INVALID_NLINK); spin_unlock(&inode->i_lock); } |