浏览代码

NFS: nfs3_proc_create() should use nfs_post_op_update_inode()

Also get rid of a redundant call to nfs_setattr_update_inode(). The call to
nfs3_proc_setattr() already takes care of that.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 18 年之前
父节点
当前提交
e2f032e9ef
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      fs/nfs/nfs3proc.c

+ 1 - 3
fs/nfs/nfs3proc.c

@@ -335,9 +335,7 @@ again:
 		 * not sure this buys us anything (and I'd have
 		 * not sure this buys us anything (and I'd have
 		 * to revamp the NFSv3 XDR code) */
 		 * to revamp the NFSv3 XDR code) */
 		status = nfs3_proc_setattr(dentry, &fattr, sattr);
 		status = nfs3_proc_setattr(dentry, &fattr, sattr);
-		if (status == 0)
-			nfs_setattr_update_inode(dentry->d_inode, sattr);
-		nfs_refresh_inode(dentry->d_inode, &fattr);
+		nfs_post_op_update_inode(dentry->d_inode, &fattr);
 		dprintk("NFS reply setattr (post-create): %d\n", status);
 		dprintk("NFS reply setattr (post-create): %d\n", status);
 	}
 	}
 	if (status != 0)
 	if (status != 0)