Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2f032e9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent aa53ed54
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -335,9 +335,7 @@ nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
		 * 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)