Commit c40d52fe authored by Trond Myklebust's avatar Trond Myklebust

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
......@@ -4125,7 +4125,8 @@ static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir)
if (nfs4_async_handle_error(task, res->server, NULL,
&data->timeout) == -EAGAIN)
return 0;
update_changeattr(dir, &res->cinfo);
if (task->tk_status == 0)
update_changeattr(dir, &res->cinfo);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment