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

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

NFSv4: Don't call update_changeattr() unless the unlink is successful



If the unlink wasn't successful, then the directory has presumably not
changed.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent c733c49c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4125,6 +4125,7 @@ static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir)
	if (nfs4_async_handle_error(task, res->server, NULL,
	if (nfs4_async_handle_error(task, res->server, NULL,
				    &data->timeout) == -EAGAIN)
				    &data->timeout) == -EAGAIN)
		return 0;
		return 0;
	if (task->tk_status == 0)
		update_changeattr(dir, &res->cinfo);
		update_changeattr(dir, &res->cinfo);
	return 1;
	return 1;
}
}