aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-03-23 13:27:48 +0000
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-23 15:29:03 -0400
commit5917ce8440ba0b3f2adee613b5f1258ac5efff02 (patch)
tree39292e35e834db27bad2164ee5cab05082ecca2a /fs
parent64bfeb49bd1c2351a8415f7fe6b25eef208872a5 (diff)
downloadkernel_goldelico_gta04-5917ce8440ba0b3f2adee613b5f1258ac5efff02.zip
kernel_goldelico_gta04-5917ce8440ba0b3f2adee613b5f1258ac5efff02.tar.gz
kernel_goldelico_gta04-5917ce8440ba0b3f2adee613b5f1258ac5efff02.tar.bz2
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: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/write.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index dbc8018..f5f005e 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1409,10 +1409,9 @@ 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;
+ struct nfs_page *req;
int status = data->task.tk_status;
while (!list_empty(&data->pages)) {
@@ -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);
}