2 * linux/fs/nfs/nfs3proc.c
4 * Client-side NFSv3 procedures stubs.
6 * Copyright (C) 1997, Olaf Kirch
10 #include <linux/errno.h>
11 #include <linux/string.h>
12 #include <linux/sunrpc/clnt.h>
13 #include <linux/nfs.h>
14 #include <linux/nfs3.h>
15 #include <linux/nfs_fs.h>
16 #include <linux/nfs_page.h>
17 #include <linux/lockd/bind.h>
18 #include <linux/nfs_mount.h>
23 #define NFSDBG_FACILITY NFSDBG_PROC
25 /* A wrapper to handle the EJUKEBOX error message */
27 nfs3_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags)
31 res = rpc_call_sync(clnt, msg, flags);
34 schedule_timeout_killable(NFS_JUKEBOX_RETRY_TIME);
36 } while (!fatal_signal_pending(current));
40 #define rpc_call_sync(clnt, msg, flags) nfs3_rpc_wrapper(clnt, msg, flags)
43 nfs3_async_handle_jukebox(struct rpc_task *task, struct inode *inode)
45 if (task->tk_status != -EJUKEBOX)
47 nfs_inc_stats(inode, NFSIOS_DELAY);
49 rpc_restart_call(task);
50 rpc_delay(task, NFS_JUKEBOX_RETRY_TIME);
55 do_proc_get_root(struct rpc_clnt *client, struct nfs_fh *fhandle,
56 struct nfs_fsinfo *info)
58 struct rpc_message msg = {
59 .rpc_proc = &nfs3_procedures[NFS3PROC_FSINFO],
65 dprintk("%s: call fsinfo\n", __func__);
66 nfs_fattr_init(info->fattr);
67 status = rpc_call_sync(client, &msg, 0);
68 dprintk("%s: reply fsinfo: %d\n", __func__, status);
69 if (!(info->fattr->valid & NFS_ATTR_FATTR)) {
70 msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR];
71 msg.rpc_resp = info->fattr;
72 status = rpc_call_sync(client, &msg, 0);
73 dprintk("%s: reply getattr: %d\n", __func__, status);
79 * Bare-bones access to getattr: this is for nfs_get_root/nfs_get_sb
82 nfs3_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle,
83 struct nfs_fsinfo *info)
87 status = do_proc_get_root(server->client, fhandle, info);
88 if (status && server->nfs_client->cl_rpcclient != server->client)
89 status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info);
94 * One function for each procedure in the NFS protocol.
97 nfs3_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
98 struct nfs_fattr *fattr)
100 struct rpc_message msg = {
101 .rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR],
107 dprintk("NFS call getattr\n");
108 nfs_fattr_init(fattr);
109 status = rpc_call_sync(server->client, &msg, 0);
110 dprintk("NFS reply getattr: %d\n", status);
115 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
118 struct inode *inode = dentry->d_inode;
119 struct nfs3_sattrargs arg = {
123 struct rpc_message msg = {
124 .rpc_proc = &nfs3_procedures[NFS3PROC_SETATTR],
130 dprintk("NFS call setattr\n");
131 if (sattr->ia_valid & ATTR_FILE)
132 msg.rpc_cred = nfs_file_cred(sattr->ia_file);
133 nfs_fattr_init(fattr);
134 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
136 nfs_setattr_update_inode(inode, sattr);
137 dprintk("NFS reply setattr: %d\n", status);
142 nfs3_proc_lookup(struct inode *dir, struct qstr *name,
143 struct nfs_fh *fhandle, struct nfs_fattr *fattr)
145 struct nfs_fattr dir_attr;
146 struct nfs3_diropargs arg = {
151 struct nfs3_diropres res = {
152 .dir_attr = &dir_attr,
156 struct rpc_message msg = {
157 .rpc_proc = &nfs3_procedures[NFS3PROC_LOOKUP],
163 dprintk("NFS call lookup %s\n", name->name);
164 nfs_fattr_init(&dir_attr);
165 nfs_fattr_init(fattr);
166 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
167 nfs_refresh_inode(dir, &dir_attr);
168 if (status >= 0 && !(fattr->valid & NFS_ATTR_FATTR)) {
169 msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR];
170 msg.rpc_argp = fhandle;
171 msg.rpc_resp = fattr;
172 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
174 dprintk("NFS reply lookup: %d\n", status);
178 static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)
180 struct nfs_fattr fattr;
181 struct nfs3_accessargs arg = {
184 struct nfs3_accessres res = {
187 struct rpc_message msg = {
188 .rpc_proc = &nfs3_procedures[NFS3PROC_ACCESS],
191 .rpc_cred = entry->cred,
193 int mode = entry->mask;
196 dprintk("NFS call access\n");
199 arg.access |= NFS3_ACCESS_READ;
200 if (S_ISDIR(inode->i_mode)) {
201 if (mode & MAY_WRITE)
202 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE;
204 arg.access |= NFS3_ACCESS_LOOKUP;
206 if (mode & MAY_WRITE)
207 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND;
209 arg.access |= NFS3_ACCESS_EXECUTE;
211 nfs_fattr_init(&fattr);
212 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
213 nfs_refresh_inode(inode, &fattr);
216 if (res.access & NFS3_ACCESS_READ)
217 entry->mask |= MAY_READ;
218 if (res.access & (NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE))
219 entry->mask |= MAY_WRITE;
220 if (res.access & (NFS3_ACCESS_LOOKUP|NFS3_ACCESS_EXECUTE))
221 entry->mask |= MAY_EXEC;
223 dprintk("NFS reply access: %d\n", status);
227 static int nfs3_proc_readlink(struct inode *inode, struct page *page,
228 unsigned int pgbase, unsigned int pglen)
230 struct nfs_fattr fattr;
231 struct nfs3_readlinkargs args = {
237 struct rpc_message msg = {
238 .rpc_proc = &nfs3_procedures[NFS3PROC_READLINK],
244 dprintk("NFS call readlink\n");
245 nfs_fattr_init(&fattr);
246 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
247 nfs_refresh_inode(inode, &fattr);
248 dprintk("NFS reply readlink: %d\n", status);
252 struct nfs3_createdata {
253 struct rpc_message msg;
255 struct nfs3_createargs create;
256 struct nfs3_mkdirargs mkdir;
257 struct nfs3_symlinkargs symlink;
258 struct nfs3_mknodargs mknod;
260 struct nfs3_diropres res;
262 struct nfs_fattr fattr;
263 struct nfs_fattr dir_attr;
266 static struct nfs3_createdata *nfs3_alloc_createdata(void)
268 struct nfs3_createdata *data;
270 data = kzalloc(sizeof(*data), GFP_KERNEL);
272 data->msg.rpc_argp = &data->arg;
273 data->msg.rpc_resp = &data->res;
274 data->res.fh = &data->fh;
275 data->res.fattr = &data->fattr;
276 data->res.dir_attr = &data->dir_attr;
277 nfs_fattr_init(data->res.fattr);
278 nfs_fattr_init(data->res.dir_attr);
283 static int nfs3_do_create(struct inode *dir, struct dentry *dentry, struct nfs3_createdata *data)
287 status = rpc_call_sync(NFS_CLIENT(dir), &data->msg, 0);
288 nfs_post_op_update_inode(dir, data->res.dir_attr);
290 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr);
294 static void nfs3_free_createdata(struct nfs3_createdata *data)
300 * Create a regular file.
303 nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
304 int flags, struct nameidata *nd)
306 struct nfs3_createdata *data;
307 mode_t mode = sattr->ia_mode;
308 int status = -ENOMEM;
310 dprintk("NFS call create %s\n", dentry->d_name.name);
312 data = nfs3_alloc_createdata();
316 data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_CREATE];
317 data->arg.create.fh = NFS_FH(dir);
318 data->arg.create.name = dentry->d_name.name;
319 data->arg.create.len = dentry->d_name.len;
320 data->arg.create.sattr = sattr;
322 data->arg.create.createmode = NFS3_CREATE_UNCHECKED;
323 if (flags & O_EXCL) {
324 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE;
325 data->arg.create.verifier[0] = jiffies;
326 data->arg.create.verifier[1] = current->pid;
329 sattr->ia_mode &= ~current_umask();
332 status = nfs3_do_create(dir, dentry, data);
334 if (status != -ENOTSUPP)
336 /* If the server doesn't support the exclusive creation
337 * semantics, try again with simple 'guarded' mode. */
338 switch (data->arg.create.createmode) {
339 case NFS3_CREATE_EXCLUSIVE:
340 data->arg.create.createmode = NFS3_CREATE_GUARDED;
343 case NFS3_CREATE_GUARDED:
344 data->arg.create.createmode = NFS3_CREATE_UNCHECKED;
347 case NFS3_CREATE_UNCHECKED:
350 nfs_fattr_init(data->res.dir_attr);
351 nfs_fattr_init(data->res.fattr);
357 /* When we created the file with exclusive semantics, make
358 * sure we set the attributes afterwards. */
359 if (data->arg.create.createmode == NFS3_CREATE_EXCLUSIVE) {
360 dprintk("NFS call setattr (post-create)\n");
362 if (!(sattr->ia_valid & ATTR_ATIME_SET))
363 sattr->ia_valid |= ATTR_ATIME;
364 if (!(sattr->ia_valid & ATTR_MTIME_SET))
365 sattr->ia_valid |= ATTR_MTIME;
367 /* Note: we could use a guarded setattr here, but I'm
368 * not sure this buys us anything (and I'd have
369 * to revamp the NFSv3 XDR code) */
370 status = nfs3_proc_setattr(dentry, data->res.fattr, sattr);
371 nfs_post_op_update_inode(dentry->d_inode, data->res.fattr);
372 dprintk("NFS reply setattr (post-create): %d\n", status);
376 status = nfs3_proc_set_default_acl(dir, dentry->d_inode, mode);
378 nfs3_free_createdata(data);
379 dprintk("NFS reply create: %d\n", status);
384 nfs3_proc_remove(struct inode *dir, struct qstr *name)
386 struct nfs_removeargs arg = {
388 .name.len = name->len,
389 .name.name = name->name,
391 struct nfs_removeres res;
392 struct rpc_message msg = {
393 .rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE],
399 dprintk("NFS call remove %s\n", name->name);
400 nfs_fattr_init(&res.dir_attr);
401 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
402 nfs_post_op_update_inode(dir, &res.dir_attr);
403 dprintk("NFS reply remove: %d\n", status);
408 nfs3_proc_unlink_setup(struct rpc_message *msg, struct inode *dir)
410 msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE];
414 nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir)
416 struct nfs_removeres *res;
417 if (nfs3_async_handle_jukebox(task, dir))
419 res = task->tk_msg.rpc_resp;
420 nfs_post_op_update_inode(dir, &res->dir_attr);
425 nfs3_proc_rename(struct inode *old_dir, struct qstr *old_name,
426 struct inode *new_dir, struct qstr *new_name)
428 struct nfs_fattr old_dir_attr, new_dir_attr;
429 struct nfs3_renameargs arg = {
430 .fromfh = NFS_FH(old_dir),
431 .fromname = old_name->name,
432 .fromlen = old_name->len,
433 .tofh = NFS_FH(new_dir),
434 .toname = new_name->name,
435 .tolen = new_name->len
437 struct nfs3_renameres res = {
438 .fromattr = &old_dir_attr,
439 .toattr = &new_dir_attr
441 struct rpc_message msg = {
442 .rpc_proc = &nfs3_procedures[NFS3PROC_RENAME],
448 dprintk("NFS call rename %s -> %s\n", old_name->name, new_name->name);
449 nfs_fattr_init(&old_dir_attr);
450 nfs_fattr_init(&new_dir_attr);
451 status = rpc_call_sync(NFS_CLIENT(old_dir), &msg, 0);
452 nfs_post_op_update_inode(old_dir, &old_dir_attr);
453 nfs_post_op_update_inode(new_dir, &new_dir_attr);
454 dprintk("NFS reply rename: %d\n", status);
459 nfs3_proc_link(struct inode *inode, struct inode *dir, struct qstr *name)
461 struct nfs_fattr dir_attr, fattr;
462 struct nfs3_linkargs arg = {
463 .fromfh = NFS_FH(inode),
465 .toname = name->name,
468 struct nfs3_linkres res = {
469 .dir_attr = &dir_attr,
472 struct rpc_message msg = {
473 .rpc_proc = &nfs3_procedures[NFS3PROC_LINK],
479 dprintk("NFS call link %s\n", name->name);
480 nfs_fattr_init(&dir_attr);
481 nfs_fattr_init(&fattr);
482 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
483 nfs_post_op_update_inode(dir, &dir_attr);
484 nfs_post_op_update_inode(inode, &fattr);
485 dprintk("NFS reply link: %d\n", status);
490 nfs3_proc_symlink(struct inode *dir, struct dentry *dentry, struct page *page,
491 unsigned int len, struct iattr *sattr)
493 struct nfs3_createdata *data;
494 int status = -ENOMEM;
496 if (len > NFS3_MAXPATHLEN)
497 return -ENAMETOOLONG;
499 dprintk("NFS call symlink %s\n", dentry->d_name.name);
501 data = nfs3_alloc_createdata();
504 data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_SYMLINK];
505 data->arg.symlink.fromfh = NFS_FH(dir);
506 data->arg.symlink.fromname = dentry->d_name.name;
507 data->arg.symlink.fromlen = dentry->d_name.len;
508 data->arg.symlink.pages = &page;
509 data->arg.symlink.pathlen = len;
510 data->arg.symlink.sattr = sattr;
512 status = nfs3_do_create(dir, dentry, data);
514 nfs3_free_createdata(data);
516 dprintk("NFS reply symlink: %d\n", status);
521 nfs3_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
523 struct nfs3_createdata *data;
524 int mode = sattr->ia_mode;
525 int status = -ENOMEM;
527 dprintk("NFS call mkdir %s\n", dentry->d_name.name);
529 sattr->ia_mode &= ~current_umask();
531 data = nfs3_alloc_createdata();
535 data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_MKDIR];
536 data->arg.mkdir.fh = NFS_FH(dir);
537 data->arg.mkdir.name = dentry->d_name.name;
538 data->arg.mkdir.len = dentry->d_name.len;
539 data->arg.mkdir.sattr = sattr;
541 status = nfs3_do_create(dir, dentry, data);
545 status = nfs3_proc_set_default_acl(dir, dentry->d_inode, mode);
547 nfs3_free_createdata(data);
548 dprintk("NFS reply mkdir: %d\n", status);
553 nfs3_proc_rmdir(struct inode *dir, struct qstr *name)
555 struct nfs_fattr dir_attr;
556 struct nfs3_diropargs arg = {
561 struct rpc_message msg = {
562 .rpc_proc = &nfs3_procedures[NFS3PROC_RMDIR],
564 .rpc_resp = &dir_attr,
568 dprintk("NFS call rmdir %s\n", name->name);
569 nfs_fattr_init(&dir_attr);
570 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
571 nfs_post_op_update_inode(dir, &dir_attr);
572 dprintk("NFS reply rmdir: %d\n", status);
577 * The READDIR implementation is somewhat hackish - we pass the user buffer
578 * to the encode function, which installs it in the receive iovec.
579 * The decode function itself doesn't perform any decoding, it just makes
580 * sure the reply is syntactically correct.
582 * Also note that this implementation handles both plain readdir and
586 nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
587 u64 cookie, struct page *page, unsigned int count, int plus)
589 struct inode *dir = dentry->d_inode;
590 struct nfs_fattr dir_attr;
591 __be32 *verf = NFS_COOKIEVERF(dir);
592 struct nfs3_readdirargs arg = {
595 .verf = {verf[0], verf[1]},
600 struct nfs3_readdirres res = {
601 .dir_attr = &dir_attr,
605 struct rpc_message msg = {
606 .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR],
614 msg.rpc_proc = &nfs3_procedures[NFS3PROC_READDIRPLUS];
616 dprintk("NFS call readdir%s %d\n",
617 plus? "plus" : "", (unsigned int) cookie);
619 nfs_fattr_init(&dir_attr);
620 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
622 nfs_invalidate_atime(dir);
624 nfs_refresh_inode(dir, &dir_attr);
625 dprintk("NFS reply readdir: %d\n", status);
630 nfs3_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
633 struct nfs3_createdata *data;
634 mode_t mode = sattr->ia_mode;
635 int status = -ENOMEM;
637 dprintk("NFS call mknod %s %u:%u\n", dentry->d_name.name,
638 MAJOR(rdev), MINOR(rdev));
640 sattr->ia_mode &= ~current_umask();
642 data = nfs3_alloc_createdata();
646 data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_MKNOD];
647 data->arg.mknod.fh = NFS_FH(dir);
648 data->arg.mknod.name = dentry->d_name.name;
649 data->arg.mknod.len = dentry->d_name.len;
650 data->arg.mknod.sattr = sattr;
651 data->arg.mknod.rdev = rdev;
653 switch (sattr->ia_mode & S_IFMT) {
655 data->arg.mknod.type = NF3BLK;
658 data->arg.mknod.type = NF3CHR;
661 data->arg.mknod.type = NF3FIFO;
664 data->arg.mknod.type = NF3SOCK;
671 status = nfs3_do_create(dir, dentry, data);
674 status = nfs3_proc_set_default_acl(dir, dentry->d_inode, mode);
676 nfs3_free_createdata(data);
677 dprintk("NFS reply mknod: %d\n", status);
682 nfs3_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
683 struct nfs_fsstat *stat)
685 struct rpc_message msg = {
686 .rpc_proc = &nfs3_procedures[NFS3PROC_FSSTAT],
692 dprintk("NFS call fsstat\n");
693 nfs_fattr_init(stat->fattr);
694 status = rpc_call_sync(server->client, &msg, 0);
695 dprintk("NFS reply statfs: %d\n", status);
700 do_proc_fsinfo(struct rpc_clnt *client, struct nfs_fh *fhandle,
701 struct nfs_fsinfo *info)
703 struct rpc_message msg = {
704 .rpc_proc = &nfs3_procedures[NFS3PROC_FSINFO],
710 dprintk("NFS call fsinfo\n");
711 nfs_fattr_init(info->fattr);
712 status = rpc_call_sync(client, &msg, 0);
713 dprintk("NFS reply fsinfo: %d\n", status);
718 * Bare-bones access to fsinfo: this is for nfs_get_root/nfs_get_sb via
722 nfs3_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle,
723 struct nfs_fsinfo *info)
727 status = do_proc_fsinfo(server->client, fhandle, info);
728 if (status && server->nfs_client->cl_rpcclient != server->client)
729 status = do_proc_fsinfo(server->nfs_client->cl_rpcclient, fhandle, info);
734 nfs3_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle,
735 struct nfs_pathconf *info)
737 struct rpc_message msg = {
738 .rpc_proc = &nfs3_procedures[NFS3PROC_PATHCONF],
744 dprintk("NFS call pathconf\n");
745 nfs_fattr_init(info->fattr);
746 status = rpc_call_sync(server->client, &msg, 0);
747 dprintk("NFS reply pathconf: %d\n", status);
751 static int nfs3_read_done(struct rpc_task *task, struct nfs_read_data *data)
753 if (nfs3_async_handle_jukebox(task, data->inode))
756 nfs_invalidate_atime(data->inode);
757 nfs_refresh_inode(data->inode, &data->fattr);
761 static void nfs3_proc_read_setup(struct nfs_read_data *data, struct rpc_message *msg)
763 msg->rpc_proc = &nfs3_procedures[NFS3PROC_READ];
766 static int nfs3_write_done(struct rpc_task *task, struct nfs_write_data *data)
768 if (nfs3_async_handle_jukebox(task, data->inode))
770 if (task->tk_status >= 0)
771 nfs_post_op_update_inode_force_wcc(data->inode, data->res.fattr);
775 static void nfs3_proc_write_setup(struct nfs_write_data *data, struct rpc_message *msg)
777 msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE];
780 static int nfs3_commit_done(struct rpc_task *task, struct nfs_write_data *data)
782 if (nfs3_async_handle_jukebox(task, data->inode))
784 nfs_refresh_inode(data->inode, data->res.fattr);
788 static void nfs3_proc_commit_setup(struct nfs_write_data *data, struct rpc_message *msg)
790 msg->rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT];
794 nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
796 struct inode *inode = filp->f_path.dentry->d_inode;
798 return nlmclnt_proc(NFS_SERVER(inode)->nlm_host, cmd, fl);
801 const struct nfs_rpc_ops nfs_v3_clientops = {
802 .version = 3, /* protocol version */
803 .dentry_ops = &nfs_dentry_operations,
804 .dir_inode_ops = &nfs3_dir_inode_operations,
805 .file_inode_ops = &nfs3_file_inode_operations,
806 .getroot = nfs3_proc_get_root,
807 .getattr = nfs3_proc_getattr,
808 .setattr = nfs3_proc_setattr,
809 .lookup = nfs3_proc_lookup,
810 .access = nfs3_proc_access,
811 .readlink = nfs3_proc_readlink,
812 .create = nfs3_proc_create,
813 .remove = nfs3_proc_remove,
814 .unlink_setup = nfs3_proc_unlink_setup,
815 .unlink_done = nfs3_proc_unlink_done,
816 .rename = nfs3_proc_rename,
817 .link = nfs3_proc_link,
818 .symlink = nfs3_proc_symlink,
819 .mkdir = nfs3_proc_mkdir,
820 .rmdir = nfs3_proc_rmdir,
821 .readdir = nfs3_proc_readdir,
822 .mknod = nfs3_proc_mknod,
823 .statfs = nfs3_proc_statfs,
824 .fsinfo = nfs3_proc_fsinfo,
825 .pathconf = nfs3_proc_pathconf,
826 .decode_dirent = nfs3_decode_dirent,
827 .read_setup = nfs3_proc_read_setup,
828 .read_done = nfs3_read_done,
829 .write_setup = nfs3_proc_write_setup,
830 .write_done = nfs3_write_done,
831 .commit_setup = nfs3_proc_commit_setup,
832 .commit_done = nfs3_commit_done,
833 .lock = nfs3_proc_lock,
834 .clear_acl_cache = nfs3_forget_cached_acls,
835 .close_context = nfs_close_context,