diff options
author | Fred Isaman <iisaman@netapp.com> | 2012-04-20 14:47:39 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-27 14:10:37 -0400 |
commit | 0b7c01533aa9f4a228d07d2768d084acb3a387bc (patch) | |
tree | aa57b08ce42f1effea2294354e3c9770b70e7612 /fs/nfs/proc.c | |
parent | 799ba8d53d32c84bd2a867ca2689538a48176140 (diff) |
NFS: add a struct nfs_commit_data to replace nfs_write_data in commits
Commits don't need the vectors of pages, etc. that writes do. Split out
a separate structure for the commit operation.
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index b63b6f4d14fb..bf80503200f5 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -688,8 +688,13 @@ static void nfs_proc_write_rpc_prepare(struct rpc_task *task, struct nfs_write_d | |||
688 | rpc_call_start(task); | 688 | rpc_call_start(task); |
689 | } | 689 | } |
690 | 690 | ||
691 | static void nfs_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data) | ||
692 | { | ||
693 | BUG(); | ||
694 | } | ||
695 | |||
691 | static void | 696 | static void |
692 | nfs_proc_commit_setup(struct nfs_write_data *data, struct rpc_message *msg) | 697 | nfs_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg) |
693 | { | 698 | { |
694 | BUG(); | 699 | BUG(); |
695 | } | 700 | } |
@@ -764,6 +769,7 @@ const struct nfs_rpc_ops nfs_v2_clientops = { | |||
764 | .write_rpc_prepare = nfs_proc_write_rpc_prepare, | 769 | .write_rpc_prepare = nfs_proc_write_rpc_prepare, |
765 | .write_done = nfs_write_done, | 770 | .write_done = nfs_write_done, |
766 | .commit_setup = nfs_proc_commit_setup, | 771 | .commit_setup = nfs_proc_commit_setup, |
772 | .commit_rpc_prepare = nfs_proc_commit_rpc_prepare, | ||
767 | .lock = nfs_proc_lock, | 773 | .lock = nfs_proc_lock, |
768 | .lock_check_bounds = nfs_lock_check_bounds, | 774 | .lock_check_bounds = nfs_lock_check_bounds, |
769 | .close_context = nfs_close_context, | 775 | .close_context = nfs_close_context, |