提交 c40d52fe 编写于 作者: T 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: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 c733c49c
...@@ -4125,6 +4125,7 @@ static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册