projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c055551
)
NFS: Changes to inode->i_nlinks must set the NFS_INO_INVALID_ATTR flag
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 14 Oct 2008 23:23:07 +0000
(19:23 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 14 Oct 2008 23:23:07 +0000
(19:23 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index 6554281e24a22ad0e40cc847b9547b1e6a37a921..de3f11e6234e2e591874f787edf9bd90f6ebf4df 100644
(file)
--- 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;