]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
NFS: nfs3_proc_create() should use nfs_post_op_update_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 5 Jun 2007 23:27:00 +0000 (19:27 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:25 +0000 (23:40 -0400)
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>
fs/nfs/nfs3proc.c

index 45268d6def2eda4c9d286ba048ba058156924e87..814d886b6aa4205e8f634451161f291eaa48e10a 100644 (file)
@@ -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)