提交 5917ce84 编写于 作者: F Fred Isaman 提交者: Trond Myklebust

NFSv4.1: pull out code from nfs_commit_release

Create a separate support function for later use by data server
commit code.
Signed-off-by: NFred Isaman <iisaman@netapp.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 64bfeb49
......@@ -1409,9 +1409,8 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
return;
}
static void nfs_commit_release(void *calldata)
static void nfs_commit_release_pages(struct nfs_write_data *data)
{
struct nfs_write_data *data = calldata;
struct nfs_page *req;
int status = data->task.tk_status;
......@@ -1446,6 +1445,13 @@ static void nfs_commit_release(void *calldata)
next:
nfs_clear_page_tag_locked(req);
}
}
static void nfs_commit_release(void *calldata)
{
struct nfs_write_data *data = calldata;
nfs_commit_release_pages(data);
nfs_commit_clear_lock(NFS_I(data->inode));
nfs_commitdata_release(calldata);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册