1 #ifndef _LINUX_NFS_XDR_H
2 #define _LINUX_NFS_XDR_H
4 #include <linux/nfsacl.h>
7 * To change the maximum rsize and wsize supported by the NFS client, adjust
8 * NFS_MAX_FILE_IO_SIZE. 64KB is a typical maximum, but some servers can
9 * support a megabyte or more. The default is left at 4096 bytes, which is
10 * reasonable for NFS over UDP.
12 #define NFS_MAX_FILE_IO_SIZE (1048576U)
13 #define NFS_DEF_FILE_IO_SIZE (4096U)
14 #define NFS_MIN_FILE_IO_SIZE (1024U)
22 * Helper for checking equality between 2 fsids.
24 static inline int nfs_fsid_equal(const struct nfs_fsid *a, const struct nfs_fsid *b)
26 return a->major == b->major && a->minor == b->minor;
30 unsigned int valid; /* which fields are valid */
48 struct timespec atime;
49 struct timespec mtime;
50 struct timespec ctime;
51 __u64 change_attr; /* NFSv4 change attribute */
52 __u64 pre_change_attr;/* pre-op NFSv4 change attribute */
53 __u64 pre_size; /* pre_op_attr.size */
54 struct timespec pre_mtime; /* pre_op_attr.mtime */
55 struct timespec pre_ctime; /* pre_op_attr.ctime */
56 unsigned long time_start;
57 unsigned long gencount;
60 #define NFS_ATTR_FATTR_TYPE (1U << 0)
61 #define NFS_ATTR_FATTR_MODE (1U << 1)
62 #define NFS_ATTR_FATTR_NLINK (1U << 2)
63 #define NFS_ATTR_FATTR_OWNER (1U << 3)
64 #define NFS_ATTR_FATTR_GROUP (1U << 4)
65 #define NFS_ATTR_FATTR_RDEV (1U << 5)
66 #define NFS_ATTR_FATTR_SIZE (1U << 6)
67 #define NFS_ATTR_FATTR_PRESIZE (1U << 7)
68 #define NFS_ATTR_FATTR_BLOCKS_USED (1U << 8)
69 #define NFS_ATTR_FATTR_SPACE_USED (1U << 9)
70 #define NFS_ATTR_FATTR_FSID (1U << 10)
71 #define NFS_ATTR_FATTR_FILEID (1U << 11)
72 #define NFS_ATTR_FATTR_ATIME (1U << 12)
73 #define NFS_ATTR_FATTR_MTIME (1U << 13)
74 #define NFS_ATTR_FATTR_CTIME (1U << 14)
75 #define NFS_ATTR_FATTR_PREMTIME (1U << 15)
76 #define NFS_ATTR_FATTR_PRECTIME (1U << 16)
77 #define NFS_ATTR_FATTR_CHANGE (1U << 17)
78 #define NFS_ATTR_FATTR_PRECHANGE (1U << 18)
79 #define NFS_ATTR_FATTR_V4_REFERRAL (1U << 19) /* NFSv4 referral */
81 #define NFS_ATTR_FATTR (NFS_ATTR_FATTR_TYPE \
82 | NFS_ATTR_FATTR_MODE \
83 | NFS_ATTR_FATTR_NLINK \
84 | NFS_ATTR_FATTR_OWNER \
85 | NFS_ATTR_FATTR_GROUP \
86 | NFS_ATTR_FATTR_RDEV \
87 | NFS_ATTR_FATTR_SIZE \
88 | NFS_ATTR_FATTR_FSID \
89 | NFS_ATTR_FATTR_FILEID \
90 | NFS_ATTR_FATTR_ATIME \
91 | NFS_ATTR_FATTR_MTIME \
92 | NFS_ATTR_FATTR_CTIME)
93 #define NFS_ATTR_FATTR_V2 (NFS_ATTR_FATTR \
94 | NFS_ATTR_FATTR_BLOCKS_USED)
95 #define NFS_ATTR_FATTR_V3 (NFS_ATTR_FATTR \
96 | NFS_ATTR_FATTR_SPACE_USED)
97 #define NFS_ATTR_FATTR_V4 (NFS_ATTR_FATTR \
98 | NFS_ATTR_FATTR_SPACE_USED \
99 | NFS_ATTR_FATTR_CHANGE)
102 * Info on the file system
105 struct nfs_fattr *fattr; /* Post-op attributes */
106 __u32 rtmax; /* max. read transfer size */
107 __u32 rtpref; /* pref. read transfer size */
108 __u32 rtmult; /* reads should be multiple of this */
109 __u32 wtmax; /* max. write transfer size */
110 __u32 wtpref; /* pref. write transfer size */
111 __u32 wtmult; /* writes should be multiple of this */
112 __u32 dtpref; /* pref. readdir transfer size */
114 __u32 lease_time; /* in seconds */
118 struct nfs_fattr *fattr; /* Post-op attributes */
119 __u64 tbytes; /* total size in bytes */
120 __u64 fbytes; /* # of free bytes */
121 __u64 abytes; /* # of bytes available to user */
122 __u64 tfiles; /* # of files */
123 __u64 ffiles; /* # of free files */
124 __u64 afiles; /* # of files available to user */
128 __u32 tsize; /* Server transfer size */
129 __u32 bsize; /* Filesystem block size */
130 __u32 blocks; /* No. of "bsize" blocks on filesystem */
131 __u32 bfree; /* No. of free "bsize" blocks */
132 __u32 bavail; /* No. of available "bsize" blocks */
135 struct nfs_pathconf {
136 struct nfs_fattr *fattr; /* Post-op attributes */
137 __u32 max_link; /* max # of hard links */
138 __u32 max_namelen; /* max name length */
141 struct nfs4_change_info {
149 /* nfs41 sessions channel attributes */
150 struct nfs4_channel_attrs {
154 u32 max_resp_sz_cached;
159 /* nfs41 sessions slot seqid */
164 struct nfs4_sequence_args {
165 struct nfs4_session *sa_session;
168 struct nfs4_sequence_res {
169 struct nfs4_session *sr_session;
170 u8 sr_slotid; /* slot used to send request */
174 * Arguments to the open call.
176 struct nfs_openargs {
177 const struct nfs_fh * fh;
178 struct nfs_seqid * seqid;
184 struct iattr * attrs; /* UNCHECKED, GUARDED */
185 nfs4_verifier verifier; /* EXCLUSIVE */
186 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */
187 fmode_t delegation_type; /* CLAIM_PREVIOUS */
189 const struct qstr * name;
190 const struct nfs_server *server; /* Needed for ID mapping */
193 struct nfs4_sequence_args seq_args;
197 nfs4_stateid stateid;
199 struct nfs4_change_info cinfo;
201 struct nfs_fattr * f_attr;
202 struct nfs_fattr * dir_attr;
203 struct nfs_seqid * seqid;
204 const struct nfs_server *server;
205 fmode_t delegation_type;
206 nfs4_stateid delegation;
209 __u32 attrset[NFS4_BITMAP_SIZE];
210 struct nfs4_sequence_res seq_res;
214 * Arguments to the open_confirm call.
216 struct nfs_open_confirmargs {
217 const struct nfs_fh * fh;
218 nfs4_stateid * stateid;
219 struct nfs_seqid * seqid;
222 struct nfs_open_confirmres {
223 nfs4_stateid stateid;
224 struct nfs_seqid * seqid;
228 * Arguments to the close call.
230 struct nfs_closeargs {
232 nfs4_stateid * stateid;
233 struct nfs_seqid * seqid;
236 struct nfs4_sequence_args seq_args;
239 struct nfs_closeres {
240 nfs4_stateid stateid;
241 struct nfs_fattr * fattr;
242 struct nfs_seqid * seqid;
243 const struct nfs_server *server;
244 struct nfs4_sequence_res seq_res;
247 * * Arguments to the lock,lockt, and locku call.
254 struct nfs_lock_args {
256 struct file_lock * fl;
257 struct nfs_seqid * lock_seqid;
258 nfs4_stateid * lock_stateid;
259 struct nfs_seqid * open_seqid;
260 nfs4_stateid * open_stateid;
261 struct nfs_lowner lock_owner;
262 unsigned char block : 1;
263 unsigned char reclaim : 1;
264 unsigned char new_lock_owner : 1;
265 struct nfs4_sequence_args seq_args;
268 struct nfs_lock_res {
269 nfs4_stateid stateid;
270 struct nfs_seqid * lock_seqid;
271 struct nfs_seqid * open_seqid;
272 struct nfs4_sequence_res seq_res;
275 struct nfs_locku_args {
277 struct file_lock * fl;
278 struct nfs_seqid * seqid;
279 nfs4_stateid * stateid;
280 struct nfs4_sequence_args seq_args;
283 struct nfs_locku_res {
284 nfs4_stateid stateid;
285 struct nfs_seqid * seqid;
286 struct nfs4_sequence_res seq_res;
289 struct nfs_lockt_args {
291 struct file_lock * fl;
292 struct nfs_lowner lock_owner;
293 struct nfs4_sequence_args seq_args;
296 struct nfs_lockt_res {
297 struct file_lock * denied; /* LOCK, LOCKT failed */
298 struct nfs4_sequence_res seq_res;
301 struct nfs4_delegreturnargs {
302 const struct nfs_fh *fhandle;
303 const nfs4_stateid *stateid;
305 struct nfs4_sequence_args seq_args;
308 struct nfs4_delegreturnres {
309 struct nfs_fattr * fattr;
310 const struct nfs_server *server;
311 struct nfs4_sequence_res seq_res;
315 * Arguments to the read call.
317 struct nfs_readargs {
319 struct nfs_open_context *context;
323 struct page ** pages;
324 struct nfs4_sequence_args seq_args;
328 struct nfs_fattr * fattr;
331 struct nfs4_sequence_res seq_res;
335 * Arguments to the write call.
337 struct nfs_writeargs {
339 struct nfs_open_context *context;
342 enum nfs3_stable_how stable;
344 struct page ** pages;
346 struct nfs4_sequence_args seq_args;
349 struct nfs_writeverf {
350 enum nfs3_stable_how committed;
354 struct nfs_writeres {
355 struct nfs_fattr * fattr;
356 struct nfs_writeverf * verf;
358 const struct nfs_server *server;
359 struct nfs4_sequence_res seq_res;
363 * Common arguments to the unlink call
365 struct nfs_removeargs {
366 const struct nfs_fh *fh;
369 struct nfs4_sequence_args seq_args;
372 struct nfs_removeres {
373 const struct nfs_server *server;
374 struct nfs4_change_info cinfo;
375 struct nfs_fattr dir_attr;
376 struct nfs4_sequence_res seq_res;
380 * Argument struct for decode_entry function
390 struct nfs_fattr * fattr;
394 * The following types are for NFSv2 only.
396 struct nfs_sattrargs {
398 struct iattr * sattr;
401 struct nfs_diropargs {
407 struct nfs_createargs {
411 struct iattr * sattr;
414 struct nfs_renameargs {
415 struct nfs_fh * fromfh;
416 const char * fromname;
417 unsigned int fromlen;
418 struct nfs_fh * tofh;
423 struct nfs_setattrargs {
425 nfs4_stateid stateid;
427 const struct nfs_server * server; /* Needed for name mapping */
429 struct nfs4_sequence_args seq_args;
432 struct nfs_setaclargs {
435 unsigned int acl_pgbase;
436 struct page ** acl_pages;
437 struct nfs4_sequence_args seq_args;
440 struct nfs_setaclres {
441 struct nfs4_sequence_res seq_res;
444 struct nfs_getaclargs {
447 unsigned int acl_pgbase;
448 struct page ** acl_pages;
449 struct nfs4_sequence_args seq_args;
452 struct nfs_getaclres {
454 struct nfs4_sequence_res seq_res;
457 struct nfs_setattrres {
458 struct nfs_fattr * fattr;
459 const struct nfs_server * server;
460 struct nfs4_sequence_res seq_res;
463 struct nfs_linkargs {
464 struct nfs_fh * fromfh;
465 struct nfs_fh * tofh;
470 struct nfs_symlinkargs {
471 struct nfs_fh * fromfh;
472 const char * fromname;
473 unsigned int fromlen;
474 struct page ** pages;
475 unsigned int pathlen;
476 struct iattr * sattr;
479 struct nfs_readdirargs {
483 struct page ** pages;
486 struct nfs3_getaclargs {
489 struct page ** pages;
492 struct nfs3_setaclargs {
493 struct inode * inode;
495 struct posix_acl * acl_access;
496 struct posix_acl * acl_default;
499 struct page ** pages;
504 struct nfs_fattr * fattr;
507 struct nfs_readlinkargs {
511 struct page ** pages;
514 struct nfs3_sattrargs {
516 struct iattr * sattr;
518 struct timespec guardtime;
521 struct nfs3_diropargs {
527 struct nfs3_accessargs {
532 struct nfs3_createargs {
536 struct iattr * sattr;
537 enum nfs3_createmode createmode;
541 struct nfs3_mkdirargs {
545 struct iattr * sattr;
548 struct nfs3_symlinkargs {
549 struct nfs_fh * fromfh;
550 const char * fromname;
551 unsigned int fromlen;
552 struct page ** pages;
553 unsigned int pathlen;
554 struct iattr * sattr;
557 struct nfs3_mknodargs {
561 enum nfs3_ftype type;
562 struct iattr * sattr;
566 struct nfs3_renameargs {
567 struct nfs_fh * fromfh;
568 const char * fromname;
569 unsigned int fromlen;
570 struct nfs_fh * tofh;
575 struct nfs3_linkargs {
576 struct nfs_fh * fromfh;
577 struct nfs_fh * tofh;
582 struct nfs3_readdirargs {
588 struct page ** pages;
591 struct nfs3_diropres {
592 struct nfs_fattr * dir_attr;
594 struct nfs_fattr * fattr;
597 struct nfs3_accessres {
598 struct nfs_fattr * fattr;
602 struct nfs3_readlinkargs {
606 struct page ** pages;
609 struct nfs3_renameres {
610 struct nfs_fattr * fromattr;
611 struct nfs_fattr * toattr;
614 struct nfs3_linkres {
615 struct nfs_fattr * dir_attr;
616 struct nfs_fattr * fattr;
619 struct nfs3_readdirres {
620 struct nfs_fattr * dir_attr;
625 struct nfs3_getaclres {
626 struct nfs_fattr * fattr;
628 unsigned int acl_access_count;
629 unsigned int acl_default_count;
630 struct posix_acl * acl_access;
631 struct posix_acl * acl_default;
636 typedef u64 clientid4;
638 struct nfs4_accessargs {
639 const struct nfs_fh * fh;
642 struct nfs4_sequence_args seq_args;
645 struct nfs4_accessres {
646 const struct nfs_server * server;
647 struct nfs_fattr * fattr;
650 struct nfs4_sequence_res seq_res;
653 struct nfs4_create_arg {
657 struct page ** pages;
659 } symlink; /* NF4LNK */
663 } device; /* NF4BLK, NF4CHR */
665 const struct qstr * name;
666 const struct nfs_server * server;
667 const struct iattr * attrs;
668 const struct nfs_fh * dir_fh;
670 struct nfs4_sequence_args seq_args;
673 struct nfs4_create_res {
674 const struct nfs_server * server;
676 struct nfs_fattr * fattr;
677 struct nfs4_change_info dir_cinfo;
678 struct nfs_fattr * dir_fattr;
679 struct nfs4_sequence_res seq_res;
682 struct nfs4_fsinfo_arg {
683 const struct nfs_fh * fh;
685 struct nfs4_sequence_args seq_args;
688 struct nfs4_fsinfo_res {
689 struct nfs_fsinfo *fsinfo;
690 struct nfs4_sequence_res seq_res;
693 struct nfs4_getattr_arg {
694 const struct nfs_fh * fh;
696 struct nfs4_sequence_args seq_args;
699 struct nfs4_getattr_res {
700 const struct nfs_server * server;
701 struct nfs_fattr * fattr;
702 struct nfs4_sequence_res seq_res;
705 struct nfs4_link_arg {
706 const struct nfs_fh * fh;
707 const struct nfs_fh * dir_fh;
708 const struct qstr * name;
710 struct nfs4_sequence_args seq_args;
713 struct nfs4_link_res {
714 const struct nfs_server * server;
715 struct nfs_fattr * fattr;
716 struct nfs4_change_info cinfo;
717 struct nfs_fattr * dir_attr;
718 struct nfs4_sequence_res seq_res;
722 struct nfs4_lookup_arg {
723 const struct nfs_fh * dir_fh;
724 const struct qstr * name;
726 struct nfs4_sequence_args seq_args;
729 struct nfs4_lookup_res {
730 const struct nfs_server * server;
731 struct nfs_fattr * fattr;
733 struct nfs4_sequence_res seq_res;
736 struct nfs4_lookup_root_arg {
738 struct nfs4_sequence_args seq_args;
741 struct nfs4_pathconf_arg {
742 const struct nfs_fh * fh;
744 struct nfs4_sequence_args seq_args;
747 struct nfs4_pathconf_res {
748 struct nfs_pathconf *pathconf;
749 struct nfs4_sequence_res seq_res;
752 struct nfs4_readdir_arg {
753 const struct nfs_fh * fh;
755 nfs4_verifier verifier;
757 struct page ** pages; /* zero-copy data */
758 unsigned int pgbase; /* zero-copy data */
760 struct nfs4_sequence_args seq_args;
763 struct nfs4_readdir_res {
764 nfs4_verifier verifier;
766 struct nfs4_sequence_res seq_res;
769 struct nfs4_readlink {
770 const struct nfs_fh * fh;
772 unsigned int pglen; /* zero-copy data */
773 struct page ** pages; /* zero-copy data */
774 struct nfs4_sequence_args seq_args;
777 struct nfs4_readlink_res {
778 struct nfs4_sequence_res seq_res;
781 struct nfs4_rename_arg {
782 const struct nfs_fh * old_dir;
783 const struct nfs_fh * new_dir;
784 const struct qstr * old_name;
785 const struct qstr * new_name;
787 struct nfs4_sequence_args seq_args;
790 struct nfs4_rename_res {
791 const struct nfs_server * server;
792 struct nfs4_change_info old_cinfo;
793 struct nfs_fattr * old_fattr;
794 struct nfs4_change_info new_cinfo;
795 struct nfs_fattr * new_fattr;
796 struct nfs4_sequence_res seq_res;
799 #define NFS4_SETCLIENTID_NAMELEN (127)
800 struct nfs4_setclientid {
801 const nfs4_verifier * sc_verifier;
802 unsigned int sc_name_len;
803 char sc_name[NFS4_SETCLIENTID_NAMELEN + 1];
805 unsigned int sc_netid_len;
806 char sc_netid[RPCBIND_MAXNETIDLEN + 1];
807 unsigned int sc_uaddr_len;
808 char sc_uaddr[RPCBIND_MAXUADDRLEN + 1];
812 struct nfs4_statfs_arg {
813 const struct nfs_fh * fh;
815 struct nfs4_sequence_args seq_args;
818 struct nfs4_statfs_res {
819 struct nfs_fsstat *fsstat;
820 struct nfs4_sequence_res seq_res;
823 struct nfs4_server_caps_arg {
824 struct nfs_fh *fhandle;
825 struct nfs4_sequence_args seq_args;
828 struct nfs4_server_caps_res {
833 struct nfs4_sequence_res seq_res;
841 #define NFS4_PATHNAME_MAXCOMPONENTS 512
842 struct nfs4_pathname {
843 unsigned int ncomponents;
844 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
847 #define NFS4_FS_LOCATION_MAXSERVERS 10
848 struct nfs4_fs_location {
849 unsigned int nservers;
850 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
851 struct nfs4_pathname rootpath;
854 #define NFS4_FS_LOCATIONS_MAXENTRIES 10
855 struct nfs4_fs_locations {
856 struct nfs_fattr fattr;
857 const struct nfs_server *server;
858 struct nfs4_pathname fs_path;
860 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
863 struct nfs4_fs_locations_arg {
864 const struct nfs_fh *dir_fh;
865 const struct qstr *name;
868 struct nfs4_sequence_args seq_args;
871 struct nfs4_fs_locations_res {
872 struct nfs4_fs_locations *fs_locations;
873 struct nfs4_sequence_res seq_res;
876 #endif /* CONFIG_NFS_V4 */
880 #define NFS_PAGEVEC_SIZE (8U)
882 struct nfs_read_data {
884 struct rpc_task task;
886 struct rpc_cred *cred;
887 struct nfs_fattr fattr; /* fattr storage */
888 struct list_head pages; /* Coalesced read requests */
889 struct nfs_page *req; /* multi ops per nfs_page */
890 struct page **pagevec;
891 unsigned int npages; /* Max length of pagevec */
892 struct nfs_readargs args;
893 struct nfs_readres res;
895 unsigned long timestamp; /* For lease renewal */
897 struct page *page_array[NFS_PAGEVEC_SIZE];
900 struct nfs_write_data {
902 struct rpc_task task;
904 struct rpc_cred *cred;
905 struct nfs_fattr fattr;
906 struct nfs_writeverf verf;
907 struct list_head pages; /* Coalesced requests we wish to flush */
908 struct nfs_page *req; /* multi ops per nfs_page */
909 struct page **pagevec;
910 unsigned int npages; /* Max length of pagevec */
911 struct nfs_writeargs args; /* argument struct */
912 struct nfs_writeres res; /* result struct */
914 unsigned long timestamp; /* For lease renewal */
916 struct page *page_array[NFS_PAGEVEC_SIZE];
919 struct nfs_access_entry;
922 * RPC procedure vector for NFSv2/NFSv3 demuxing
925 u32 version; /* Protocol version */
926 const struct dentry_operations *dentry_ops;
927 const struct inode_operations *dir_inode_ops;
928 const struct inode_operations *file_inode_ops;
930 int (*getroot) (struct nfs_server *, struct nfs_fh *,
931 struct nfs_fsinfo *);
932 int (*lookupfh)(struct nfs_server *, struct nfs_fh *,
933 struct qstr *, struct nfs_fh *,
935 int (*getattr) (struct nfs_server *, struct nfs_fh *,
937 int (*setattr) (struct dentry *, struct nfs_fattr *,
939 int (*lookup) (struct inode *, struct qstr *,
940 struct nfs_fh *, struct nfs_fattr *);
941 int (*access) (struct inode *, struct nfs_access_entry *);
942 int (*readlink)(struct inode *, struct page *, unsigned int,
944 int (*create) (struct inode *, struct dentry *,
945 struct iattr *, int, struct nameidata *);
946 int (*remove) (struct inode *, struct qstr *);
947 void (*unlink_setup) (struct rpc_message *, struct inode *dir);
948 int (*unlink_done) (struct rpc_task *, struct inode *);
949 int (*rename) (struct inode *, struct qstr *,
950 struct inode *, struct qstr *);
951 int (*link) (struct inode *, struct inode *, struct qstr *);
952 int (*symlink) (struct inode *, struct dentry *, struct page *,
953 unsigned int, struct iattr *);
954 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
955 int (*rmdir) (struct inode *, struct qstr *);
956 int (*readdir) (struct dentry *, struct rpc_cred *,
957 u64, struct page *, unsigned int, int);
958 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
960 int (*statfs) (struct nfs_server *, struct nfs_fh *,
961 struct nfs_fsstat *);
962 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
963 struct nfs_fsinfo *);
964 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
965 struct nfs_pathconf *);
966 int (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
967 __be32 *(*decode_dirent)(__be32 *, struct nfs_entry *, int plus);
968 void (*read_setup) (struct nfs_read_data *, struct rpc_message *);
969 int (*read_done) (struct rpc_task *, struct nfs_read_data *);
970 void (*write_setup) (struct nfs_write_data *, struct rpc_message *);
971 int (*write_done) (struct rpc_task *, struct nfs_write_data *);
972 void (*commit_setup) (struct nfs_write_data *, struct rpc_message *);
973 int (*commit_done) (struct rpc_task *, struct nfs_write_data *);
974 int (*lock)(struct file *, int, struct file_lock *);
975 int (*lock_check_bounds)(const struct file_lock *);
976 void (*clear_acl_cache)(struct inode *);
977 void (*close_context)(struct nfs_open_context *ctx, int);
981 * NFS_CALL(getattr, inode, (fattr));
983 * NFS_PROTO(inode)->getattr(fattr);
985 #define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args
988 * Function vectors etc. for the NFS client
990 extern const struct nfs_rpc_ops nfs_v2_clientops;
991 extern const struct nfs_rpc_ops nfs_v3_clientops;
992 extern const struct nfs_rpc_ops nfs_v4_clientops;
993 extern struct rpc_version nfs_version2;
994 extern struct rpc_version nfs_version3;
995 extern struct rpc_version nfs_version4;
997 extern struct rpc_version nfsacl_version3;
998 extern struct rpc_program nfsacl_program;