From: Trond Myklebust Date: Tue, 5 Jun 2007 23:27:00 +0000 (-0400) Subject: NFS: nfs3_proc_create() should use nfs_post_op_update_inode() X-Git-Tag: v3.12-rc1~28667^2~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f032e9ef66e33089d09452892696ea97d1dca1;p=kernel%2Fkernel-generic.git 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 --- diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 45268d6..814d886 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -335,9 +335,7 @@ again: * not sure this buys us anything (and I'd have * to revamp the NFSv3 XDR code) */ 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); } if (status != 0)