diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-08-16 14:29:57 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-08-16 14:29:57 -0400 |
| commit | f7001e8f1fa5369ee24f58255726a04a2019e4bd (patch) | |
| tree | 1bbdd233ad0cf2e0adb4eb04f22b7bfa59a43494 /fs/nfs/nfs3proc.c | |
| parent | 85f265d887d2389376f1caa191e9682085feb76e (diff) | |
| parent | cf59001235c5a36f3e3701bd593a78cf955a4242 (diff) | |
Auto-update from upstream
Diffstat (limited to 'fs/nfs/nfs3proc.c')
| -rw-r--r-- | fs/nfs/nfs3proc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 7851569b31c6..2681485cf2d0 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
| @@ -120,6 +120,8 @@ nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, | |||
| 120 | dprintk("NFS call setattr\n"); | 120 | dprintk("NFS call setattr\n"); |
| 121 | fattr->valid = 0; | 121 | fattr->valid = 0; |
| 122 | status = rpc_call(NFS_CLIENT(inode), NFS3PROC_SETATTR, &arg, fattr, 0); | 122 | status = rpc_call(NFS_CLIENT(inode), NFS3PROC_SETATTR, &arg, fattr, 0); |
| 123 | if (status == 0) | ||
| 124 | nfs_setattr_update_inode(inode, sattr); | ||
| 123 | dprintk("NFS reply setattr: %d\n", status); | 125 | dprintk("NFS reply setattr: %d\n", status); |
| 124 | return status; | 126 | return status; |
| 125 | } | 127 | } |
| @@ -370,6 +372,8 @@ again: | |||
| 370 | * not sure this buys us anything (and I'd have | 372 | * not sure this buys us anything (and I'd have |
| 371 | * to revamp the NFSv3 XDR code) */ | 373 | * to revamp the NFSv3 XDR code) */ |
| 372 | status = nfs3_proc_setattr(dentry, &fattr, sattr); | 374 | status = nfs3_proc_setattr(dentry, &fattr, sattr); |
| 375 | if (status == 0) | ||
| 376 | nfs_setattr_update_inode(dentry->d_inode, sattr); | ||
| 373 | nfs_refresh_inode(dentry->d_inode, &fattr); | 377 | nfs_refresh_inode(dentry->d_inode, &fattr); |
| 374 | dprintk("NFS reply setattr (post-create): %d\n", status); | 378 | dprintk("NFS reply setattr (post-create): %d\n", status); |
| 375 | } | 379 | } |
