NFS: Clean up inode metadata updates
[deliverable/linux.git] / include / linux / nfs_xdr.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_NFS_XDR_H
2#define _LINUX_NFS_XDR_H
3
4#include <linux/sunrpc/xprt.h>
b7fa0554 5#include <linux/nfsacl.h>
1da177e4 6
40859d7e
CL
7/*
8 * To change the maximum rsize and wsize supported by the NFS client, adjust
9 * NFS_MAX_FILE_IO_SIZE. 64KB is a typical maximum, but some servers can
10 * support a megabyte or more. The default is left at 4096 bytes, which is
11 * reasonable for NFS over UDP.
12 */
13#define NFS_MAX_FILE_IO_SIZE (1048576U)
14#define NFS_DEF_FILE_IO_SIZE (4096U)
15#define NFS_MIN_FILE_IO_SIZE (1024U)
16
1da177e4
LT
17struct nfs4_fsid {
18 __u64 major;
19 __u64 minor;
20};
21
22struct nfs_fattr {
23 unsigned short valid; /* which fields are valid */
24 __u64 pre_size; /* pre_op_attr.size */
25 struct timespec pre_mtime; /* pre_op_attr.mtime */
26 struct timespec pre_ctime; /* pre_op_attr.ctime */
27 enum nfs_ftype type; /* always use NFSv2 types */
28 __u32 mode;
29 __u32 nlink;
30 __u32 uid;
31 __u32 gid;
32 __u64 size;
33 union {
34 struct {
35 __u32 blocksize;
36 __u32 blocks;
37 } nfs2;
38 struct {
39 __u64 used;
40 } nfs3;
41 } du;
42 dev_t rdev;
43 union {
44 __u64 nfs3; /* also nfs2 */
45 struct nfs4_fsid nfs4;
46 } fsid_u;
47 __u64 fileid;
48 struct timespec atime;
49 struct timespec mtime;
50 struct timespec ctime;
51 __u32 bitmap[2]; /* NFSv4 returned attribute bitmap */
52 __u64 change_attr; /* NFSv4 change attribute */
53 __u64 pre_change_attr;/* pre-op NFSv4 change attribute */
33801147 54 unsigned long time_start;
1da177e4
LT
55};
56
57#define NFS_ATTR_WCC 0x0001 /* pre-op WCC data */
58#define NFS_ATTR_FATTR 0x0002 /* post-op attributes */
59#define NFS_ATTR_FATTR_V3 0x0004 /* NFSv3 attributes */
73a3d07c 60#define NFS_ATTR_FATTR_V4 0x0008 /* NFSv4 change attribute */
1da177e4
LT
61
62/*
63 * Info on the file system
64 */
65struct nfs_fsinfo {
66 struct nfs_fattr *fattr; /* Post-op attributes */
67 __u32 rtmax; /* max. read transfer size */
68 __u32 rtpref; /* pref. read transfer size */
69 __u32 rtmult; /* reads should be multiple of this */
70 __u32 wtmax; /* max. write transfer size */
71 __u32 wtpref; /* pref. write transfer size */
72 __u32 wtmult; /* writes should be multiple of this */
73 __u32 dtpref; /* pref. readdir transfer size */
74 __u64 maxfilesize;
75 __u32 lease_time; /* in seconds */
76};
77
78struct nfs_fsstat {
79 struct nfs_fattr *fattr; /* Post-op attributes */
80 __u64 tbytes; /* total size in bytes */
81 __u64 fbytes; /* # of free bytes */
82 __u64 abytes; /* # of bytes available to user */
83 __u64 tfiles; /* # of files */
84 __u64 ffiles; /* # of free files */
85 __u64 afiles; /* # of files available to user */
86};
87
88struct nfs2_fsstat {
89 __u32 tsize; /* Server transfer size */
90 __u32 bsize; /* Filesystem block size */
91 __u32 blocks; /* No. of "bsize" blocks on filesystem */
92 __u32 bfree; /* No. of free "bsize" blocks */
93 __u32 bavail; /* No. of available "bsize" blocks */
94};
95
96struct nfs_pathconf {
97 struct nfs_fattr *fattr; /* Post-op attributes */
98 __u32 max_link; /* max # of hard links */
99 __u32 max_namelen; /* max name length */
100};
101
102struct nfs4_change_info {
103 u32 atomic;
104 u64 before;
105 u64 after;
106};
107
cee54fc9 108struct nfs_seqid;
1da177e4
LT
109/*
110 * Arguments to the open call.
111 */
112struct nfs_openargs {
113 const struct nfs_fh * fh;
cee54fc9 114 struct nfs_seqid * seqid;
1da177e4
LT
115 int open_flags;
116 __u64 clientid;
117 __u32 id;
118 union {
119 struct iattr * attrs; /* UNCHECKED, GUARDED */
120 nfs4_verifier verifier; /* EXCLUSIVE */
121 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */
122 int delegation_type; /* CLAIM_PREVIOUS */
123 } u;
124 const struct qstr * name;
125 const struct nfs_server *server; /* Needed for ID mapping */
126 const u32 * bitmask;
127 __u32 claim;
128};
129
130struct nfs_openres {
131 nfs4_stateid stateid;
132 struct nfs_fh fh;
133 struct nfs4_change_info cinfo;
134 __u32 rflags;
135 struct nfs_fattr * f_attr;
56ae19f3 136 struct nfs_fattr * dir_attr;
1da177e4
LT
137 const struct nfs_server *server;
138 int delegation_type;
139 nfs4_stateid delegation;
140 __u32 do_recall;
141 __u64 maxsize;
142};
143
144/*
145 * Arguments to the open_confirm call.
146 */
147struct nfs_open_confirmargs {
148 const struct nfs_fh * fh;
cdd4e68b 149 nfs4_stateid * stateid;
cee54fc9 150 struct nfs_seqid * seqid;
1da177e4
LT
151};
152
153struct nfs_open_confirmres {
154 nfs4_stateid stateid;
155};
156
157/*
158 * Arguments to the close call.
159 */
160struct nfs_closeargs {
161 struct nfs_fh * fh;
9512135d 162 nfs4_stateid * stateid;
cee54fc9 163 struct nfs_seqid * seqid;
1da177e4 164 int open_flags;
516a6af6 165 const u32 * bitmask;
1da177e4
LT
166};
167
168struct nfs_closeres {
169 nfs4_stateid stateid;
516a6af6
TM
170 struct nfs_fattr * fattr;
171 const struct nfs_server *server;
1da177e4
LT
172};
173/*
174 * * Arguments to the lock,lockt, and locku call.
175 * */
176struct nfs_lowner {
911d1aaf
TM
177 __u64 clientid;
178 u32 id;
1da177e4
LT
179};
180
911d1aaf
TM
181struct nfs_lock_args {
182 struct nfs_fh * fh;
183 struct file_lock * fl;
cee54fc9 184 struct nfs_seqid * lock_seqid;
06735b34
TM
185 nfs4_stateid * lock_stateid;
186 struct nfs_seqid * open_seqid;
187 nfs4_stateid * open_stateid;
911d1aaf
TM
188 struct nfs_lowner lock_owner;
189 unsigned char block : 1;
190 unsigned char reclaim : 1;
191 unsigned char new_lock_owner : 1;
192};
193
194struct nfs_lock_res {
195 nfs4_stateid stateid;
1da177e4
LT
196};
197
911d1aaf
TM
198struct nfs_locku_args {
199 struct nfs_fh * fh;
200 struct file_lock * fl;
cee54fc9 201 struct nfs_seqid * seqid;
faf5f49c 202 nfs4_stateid * stateid;
1da177e4
LT
203};
204
911d1aaf
TM
205struct nfs_locku_res {
206 nfs4_stateid stateid;
1da177e4
LT
207};
208
911d1aaf
TM
209struct nfs_lockt_args {
210 struct nfs_fh * fh;
211 struct file_lock * fl;
212 struct nfs_lowner lock_owner;
1da177e4
LT
213};
214
911d1aaf
TM
215struct nfs_lockt_res {
216 struct file_lock * denied; /* LOCK, LOCKT failed */
1da177e4
LT
217};
218
219struct nfs4_delegreturnargs {
220 const struct nfs_fh *fhandle;
221 const nfs4_stateid *stateid;
fa178f29
TM
222 const u32 * bitmask;
223};
224
225struct nfs4_delegreturnres {
226 struct nfs_fattr * fattr;
227 const struct nfs_server *server;
1da177e4
LT
228};
229
230/*
231 * Arguments to the read call.
232 */
1da177e4
LT
233struct nfs_readargs {
234 struct nfs_fh * fh;
235 struct nfs_open_context *context;
236 __u64 offset;
237 __u32 count;
238 unsigned int pgbase;
239 struct page ** pages;
240};
241
242struct nfs_readres {
243 struct nfs_fattr * fattr;
244 __u32 count;
245 int eof;
246};
247
248/*
249 * Arguments to the write call.
250 */
1da177e4
LT
251struct nfs_writeargs {
252 struct nfs_fh * fh;
253 struct nfs_open_context *context;
254 __u64 offset;
255 __u32 count;
256 enum nfs3_stable_how stable;
257 unsigned int pgbase;
258 struct page ** pages;
4f9838c7 259 const u32 * bitmask;
1da177e4
LT
260};
261
262struct nfs_writeverf {
263 enum nfs3_stable_how committed;
264 __u32 verifier[2];
265};
266
267struct nfs_writeres {
268 struct nfs_fattr * fattr;
269 struct nfs_writeverf * verf;
270 __u32 count;
4f9838c7 271 const struct nfs_server *server;
1da177e4
LT
272};
273
274/*
275 * Argument struct for decode_entry function
276 */
277struct nfs_entry {
278 __u64 ino;
279 __u64 cookie,
280 prev_cookie;
281 const char * name;
282 unsigned int len;
283 int eof;
284 struct nfs_fh * fh;
285 struct nfs_fattr * fattr;
286};
287
288/*
289 * The following types are for NFSv2 only.
290 */
291struct nfs_sattrargs {
292 struct nfs_fh * fh;
293 struct iattr * sattr;
294};
295
296struct nfs_diropargs {
297 struct nfs_fh * fh;
298 const char * name;
299 unsigned int len;
300};
301
302struct nfs_createargs {
303 struct nfs_fh * fh;
304 const char * name;
305 unsigned int len;
306 struct iattr * sattr;
307};
308
309struct nfs_renameargs {
310 struct nfs_fh * fromfh;
311 const char * fromname;
312 unsigned int fromlen;
313 struct nfs_fh * tofh;
314 const char * toname;
315 unsigned int tolen;
316};
317
318struct nfs_setattrargs {
319 struct nfs_fh * fh;
320 nfs4_stateid stateid;
321 struct iattr * iap;
322 const struct nfs_server * server; /* Needed for name mapping */
323 const u32 * bitmask;
324};
325
23ec6965
BF
326struct nfs_setaclargs {
327 struct nfs_fh * fh;
328 size_t acl_len;
329 unsigned int acl_pgbase;
330 struct page ** acl_pages;
331};
332
029d105e
BF
333struct nfs_getaclargs {
334 struct nfs_fh * fh;
335 size_t acl_len;
336 unsigned int acl_pgbase;
337 struct page ** acl_pages;
338};
339
1da177e4
LT
340struct nfs_setattrres {
341 struct nfs_fattr * fattr;
342 const struct nfs_server * server;
343};
344
345struct nfs_linkargs {
346 struct nfs_fh * fromfh;
347 struct nfs_fh * tofh;
348 const char * toname;
349 unsigned int tolen;
350};
351
352struct nfs_symlinkargs {
353 struct nfs_fh * fromfh;
354 const char * fromname;
355 unsigned int fromlen;
356 const char * topath;
357 unsigned int tolen;
358 struct iattr * sattr;
359};
360
361struct nfs_readdirargs {
362 struct nfs_fh * fh;
363 __u32 cookie;
364 unsigned int count;
365 struct page ** pages;
366};
367
b7fa0554
AG
368struct nfs3_getaclargs {
369 struct nfs_fh * fh;
370 int mask;
371 struct page ** pages;
372};
373
374struct nfs3_setaclargs {
375 struct inode * inode;
376 int mask;
377 struct posix_acl * acl_access;
378 struct posix_acl * acl_default;
379 struct page ** pages;
380};
381
1da177e4
LT
382struct nfs_diropok {
383 struct nfs_fh * fh;
384 struct nfs_fattr * fattr;
385};
386
387struct nfs_readlinkargs {
388 struct nfs_fh * fh;
389 unsigned int pgbase;
390 unsigned int pglen;
391 struct page ** pages;
392};
393
394struct nfs3_sattrargs {
395 struct nfs_fh * fh;
396 struct iattr * sattr;
397 unsigned int guard;
398 struct timespec guardtime;
399};
400
401struct nfs3_diropargs {
402 struct nfs_fh * fh;
403 const char * name;
404 unsigned int len;
405};
406
407struct nfs3_accessargs {
408 struct nfs_fh * fh;
409 __u32 access;
410};
411
412struct nfs3_createargs {
413 struct nfs_fh * fh;
414 const char * name;
415 unsigned int len;
416 struct iattr * sattr;
417 enum nfs3_createmode createmode;
418 __u32 verifier[2];
419};
420
421struct nfs3_mkdirargs {
422 struct nfs_fh * fh;
423 const char * name;
424 unsigned int len;
425 struct iattr * sattr;
426};
427
428struct nfs3_symlinkargs {
429 struct nfs_fh * fromfh;
430 const char * fromname;
431 unsigned int fromlen;
432 const char * topath;
433 unsigned int tolen;
434 struct iattr * sattr;
435};
436
437struct nfs3_mknodargs {
438 struct nfs_fh * fh;
439 const char * name;
440 unsigned int len;
441 enum nfs3_ftype type;
442 struct iattr * sattr;
443 dev_t rdev;
444};
445
446struct nfs3_renameargs {
447 struct nfs_fh * fromfh;
448 const char * fromname;
449 unsigned int fromlen;
450 struct nfs_fh * tofh;
451 const char * toname;
452 unsigned int tolen;
453};
454
455struct nfs3_linkargs {
456 struct nfs_fh * fromfh;
457 struct nfs_fh * tofh;
458 const char * toname;
459 unsigned int tolen;
460};
461
462struct nfs3_readdirargs {
463 struct nfs_fh * fh;
464 __u64 cookie;
465 __u32 verf[2];
466 int plus;
467 unsigned int count;
468 struct page ** pages;
469};
470
471struct nfs3_diropres {
472 struct nfs_fattr * dir_attr;
473 struct nfs_fh * fh;
474 struct nfs_fattr * fattr;
475};
476
477struct nfs3_accessres {
478 struct nfs_fattr * fattr;
479 __u32 access;
480};
481
482struct nfs3_readlinkargs {
483 struct nfs_fh * fh;
484 unsigned int pgbase;
485 unsigned int pglen;
486 struct page ** pages;
487};
488
489struct nfs3_renameres {
490 struct nfs_fattr * fromattr;
491 struct nfs_fattr * toattr;
492};
493
494struct nfs3_linkres {
495 struct nfs_fattr * dir_attr;
496 struct nfs_fattr * fattr;
497};
498
499struct nfs3_readdirres {
500 struct nfs_fattr * dir_attr;
501 __u32 * verf;
502 int plus;
503};
504
b7fa0554
AG
505struct nfs3_getaclres {
506 struct nfs_fattr * fattr;
507 int mask;
508 unsigned int acl_access_count;
509 unsigned int acl_default_count;
510 struct posix_acl * acl_access;
511 struct posix_acl * acl_default;
512};
513
1da177e4
LT
514#ifdef CONFIG_NFS_V4
515
516typedef u64 clientid4;
517
518struct nfs4_accessargs {
519 const struct nfs_fh * fh;
520 u32 access;
521};
522
523struct nfs4_accessres {
524 u32 supported;
525 u32 access;
526};
527
528struct nfs4_create_arg {
529 u32 ftype;
530 union {
531 struct qstr * symlink; /* NF4LNK */
532 struct {
533 u32 specdata1;
534 u32 specdata2;
535 } device; /* NF4BLK, NF4CHR */
536 } u;
537 const struct qstr * name;
538 const struct nfs_server * server;
539 const struct iattr * attrs;
540 const struct nfs_fh * dir_fh;
541 const u32 * bitmask;
542};
543
544struct nfs4_create_res {
545 const struct nfs_server * server;
546 struct nfs_fh * fh;
547 struct nfs_fattr * fattr;
548 struct nfs4_change_info dir_cinfo;
56ae19f3 549 struct nfs_fattr * dir_fattr;
1da177e4
LT
550};
551
552struct nfs4_fsinfo_arg {
553 const struct nfs_fh * fh;
554 const u32 * bitmask;
555};
556
557struct nfs4_getattr_arg {
558 const struct nfs_fh * fh;
559 const u32 * bitmask;
560};
561
562struct nfs4_getattr_res {
563 const struct nfs_server * server;
564 struct nfs_fattr * fattr;
565};
566
567struct nfs4_link_arg {
568 const struct nfs_fh * fh;
569 const struct nfs_fh * dir_fh;
570 const struct qstr * name;
91ba2eee
TM
571 const u32 * bitmask;
572};
573
574struct nfs4_link_res {
575 const struct nfs_server * server;
576 struct nfs_fattr * fattr;
577 struct nfs4_change_info cinfo;
578 struct nfs_fattr * dir_attr;
1da177e4
LT
579};
580
91ba2eee 581
1da177e4
LT
582struct nfs4_lookup_arg {
583 const struct nfs_fh * dir_fh;
584 const struct qstr * name;
585 const u32 * bitmask;
586};
587
588struct nfs4_lookup_res {
589 const struct nfs_server * server;
590 struct nfs_fattr * fattr;
591 struct nfs_fh * fh;
592};
593
594struct nfs4_lookup_root_arg {
595 const u32 * bitmask;
596};
597
598struct nfs4_pathconf_arg {
599 const struct nfs_fh * fh;
600 const u32 * bitmask;
601};
602
603struct nfs4_readdir_arg {
604 const struct nfs_fh * fh;
605 u64 cookie;
606 nfs4_verifier verifier;
607 u32 count;
608 struct page ** pages; /* zero-copy data */
609 unsigned int pgbase; /* zero-copy data */
610 const u32 * bitmask;
611};
612
613struct nfs4_readdir_res {
614 nfs4_verifier verifier;
615 unsigned int pgbase;
616};
617
618struct nfs4_readlink {
619 const struct nfs_fh * fh;
620 unsigned int pgbase;
621 unsigned int pglen; /* zero-copy data */
622 struct page ** pages; /* zero-copy data */
623};
624
625struct nfs4_remove_arg {
626 const struct nfs_fh * fh;
627 const struct qstr * name;
16e42959
TM
628 const u32 * bitmask;
629};
630
631struct nfs4_remove_res {
632 const struct nfs_server * server;
633 struct nfs4_change_info cinfo;
634 struct nfs_fattr * dir_attr;
1da177e4
LT
635};
636
637struct nfs4_rename_arg {
638 const struct nfs_fh * old_dir;
639 const struct nfs_fh * new_dir;
640 const struct qstr * old_name;
641 const struct qstr * new_name;
6caf2c82 642 const u32 * bitmask;
1da177e4
LT
643};
644
645struct nfs4_rename_res {
6caf2c82 646 const struct nfs_server * server;
1da177e4 647 struct nfs4_change_info old_cinfo;
6caf2c82 648 struct nfs_fattr * old_fattr;
1da177e4 649 struct nfs4_change_info new_cinfo;
6caf2c82 650 struct nfs_fattr * new_fattr;
1da177e4
LT
651};
652
653struct nfs4_setclientid {
654 const nfs4_verifier * sc_verifier; /* request */
655 unsigned int sc_name_len;
656 char sc_name[32]; /* request */
657 u32 sc_prog; /* request */
658 unsigned int sc_netid_len;
659 char sc_netid[4]; /* request */
660 unsigned int sc_uaddr_len;
661 char sc_uaddr[24]; /* request */
662 u32 sc_cb_ident; /* request */
663};
664
665struct nfs4_statfs_arg {
666 const struct nfs_fh * fh;
667 const u32 * bitmask;
668};
669
670struct nfs4_server_caps_res {
671 u32 attr_bitmask[2];
672 u32 acl_bitmask;
673 u32 has_links;
674 u32 has_symlinks;
675};
676
677#endif /* CONFIG_NFS_V4 */
678
679struct nfs_page;
680
40859d7e
CL
681#define NFS_PAGEVEC_SIZE (8U)
682
1da177e4
LT
683struct nfs_read_data {
684 int flags;
685 struct rpc_task task;
686 struct inode *inode;
687 struct rpc_cred *cred;
688 struct nfs_fattr fattr; /* fattr storage */
689 struct list_head pages; /* Coalesced read requests */
690 struct nfs_page *req; /* multi ops per nfs_page */
40859d7e 691 struct page **pagevec;
1da177e4
LT
692 struct nfs_readargs args;
693 struct nfs_readres res;
694#ifdef CONFIG_NFS_V4
695 unsigned long timestamp; /* For lease renewal */
696#endif
40859d7e 697 struct page *page_array[NFS_PAGEVEC_SIZE + 1];
1da177e4
LT
698};
699
700struct nfs_write_data {
701 int flags;
702 struct rpc_task task;
703 struct inode *inode;
704 struct rpc_cred *cred;
705 struct nfs_fattr fattr;
706 struct nfs_writeverf verf;
707 struct list_head pages; /* Coalesced requests we wish to flush */
708 struct nfs_page *req; /* multi ops per nfs_page */
40859d7e 709 struct page **pagevec;
1da177e4
LT
710 struct nfs_writeargs args; /* argument struct */
711 struct nfs_writeres res; /* result struct */
712#ifdef CONFIG_NFS_V4
713 unsigned long timestamp; /* For lease renewal */
714#endif
40859d7e 715 struct page *page_array[NFS_PAGEVEC_SIZE + 1];
1da177e4
LT
716};
717
718struct nfs_access_entry;
719
720/*
721 * RPC procedure vector for NFSv2/NFSv3 demuxing
722 */
723struct nfs_rpc_ops {
724 int version; /* Protocol version */
725 struct dentry_operations *dentry_ops;
726 struct inode_operations *dir_inode_ops;
92cfc62c 727 struct inode_operations *file_inode_ops;
1da177e4
LT
728
729 int (*getroot) (struct nfs_server *, struct nfs_fh *,
730 struct nfs_fsinfo *);
731 int (*getattr) (struct nfs_server *, struct nfs_fh *,
732 struct nfs_fattr *);
733 int (*setattr) (struct dentry *, struct nfs_fattr *,
734 struct iattr *);
735 int (*lookup) (struct inode *, struct qstr *,
736 struct nfs_fh *, struct nfs_fattr *);
737 int (*access) (struct inode *, struct nfs_access_entry *);
738 int (*readlink)(struct inode *, struct page *, unsigned int,
739 unsigned int);
740 int (*read) (struct nfs_read_data *);
741 int (*write) (struct nfs_write_data *);
742 int (*commit) (struct nfs_write_data *);
743 int (*create) (struct inode *, struct dentry *,
02a913a7 744 struct iattr *, int, struct nameidata *);
1da177e4
LT
745 int (*remove) (struct inode *, struct qstr *);
746 int (*unlink_setup) (struct rpc_message *,
747 struct dentry *, struct qstr *);
748 int (*unlink_done) (struct dentry *, struct rpc_task *);
749 int (*rename) (struct inode *, struct qstr *,
750 struct inode *, struct qstr *);
751 int (*link) (struct inode *, struct inode *, struct qstr *);
752 int (*symlink) (struct inode *, struct qstr *, struct qstr *,
753 struct iattr *, struct nfs_fh *,
754 struct nfs_fattr *);
755 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
756 int (*rmdir) (struct inode *, struct qstr *);
757 int (*readdir) (struct dentry *, struct rpc_cred *,
758 u64, struct page *, unsigned int, int);
759 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
760 dev_t);
761 int (*statfs) (struct nfs_server *, struct nfs_fh *,
762 struct nfs_fsstat *);
763 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
764 struct nfs_fsinfo *);
765 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
766 struct nfs_pathconf *);
767 u32 * (*decode_dirent)(u32 *, struct nfs_entry *, int plus);
768 void (*read_setup) (struct nfs_read_data *);
ec06c096 769 int (*read_done) (struct rpc_task *, struct nfs_read_data *);
1da177e4 770 void (*write_setup) (struct nfs_write_data *, int how);
788e7a89 771 int (*write_done) (struct rpc_task *, struct nfs_write_data *);
1da177e4 772 void (*commit_setup) (struct nfs_write_data *, int how);
788e7a89 773 int (*commit_done) (struct rpc_task *, struct nfs_write_data *);
1da177e4
LT
774 int (*file_open) (struct inode *, struct file *);
775 int (*file_release) (struct inode *, struct file *);
776 int (*lock)(struct file *, int, struct file_lock *);
ada70d94 777 void (*clear_acl_cache)(struct inode *);
1da177e4
LT
778};
779
780/*
781 * NFS_CALL(getattr, inode, (fattr));
782 * into
783 * NFS_PROTO(inode)->getattr(fattr);
784 */
785#define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
786
787/*
788 * Function vectors etc. for the NFS client
789 */
790extern struct nfs_rpc_ops nfs_v2_clientops;
791extern struct nfs_rpc_ops nfs_v3_clientops;
792extern struct nfs_rpc_ops nfs_v4_clientops;
793extern struct rpc_version nfs_version2;
794extern struct rpc_version nfs_version3;
795extern struct rpc_version nfs_version4;
796
b7fa0554
AG
797extern struct rpc_version nfsacl_version3;
798extern struct rpc_program nfsacl_program;
799
1da177e4 800#endif
This page took 0.256681 seconds and 5 git commands to generate.