Lines Matching full:struct

20 struct nfs4_string {
25 struct nfs_fsid {
33 static inline int nfs_fsid_equal(const struct nfs_fsid *a, const struct nfs_fsid *b) in nfs_fsid_equal()
38 struct nfs4_threshold {
47 struct nfs_fattr {
56 struct {
60 struct {
64 struct nfs_fsid fsid;
67 struct timespec64 atime;
68 struct timespec64 mtime;
69 struct timespec64 ctime;
73 struct timespec64 pre_mtime; /* pre_op_attr.mtime */
74 struct timespec64 pre_ctime; /* pre_op_attr.ctime */
77 struct nfs4_string *owner_name;
78 struct nfs4_string *group_name;
79 struct nfs4_threshold *mdsthreshold; /* pNFS threshold hints */
80 struct nfs4_label *label;
139 struct nfs_fsinfo {
140 struct nfs_fattr *fattr; /* Post-op attributes */
149 struct timespec64 time_delta; /* server time granularity */
160 struct nfs_fsstat {
161 struct nfs_fattr *fattr; /* Post-op attributes */
170 struct nfs2_fsstat {
178 struct nfs_pathconf {
179 struct nfs_fattr *fattr; /* Post-op attributes */
184 struct nfs4_change_info {
190 struct nfs_seqid;
193 struct nfs4_channel_attrs {
201 struct nfs4_slot;
202 struct nfs4_sequence_args {
203 struct nfs4_slot *sa_slot;
208 struct nfs4_sequence_res {
209 struct nfs4_slot *sr_slot; /* slot used to send request */
217 struct nfs4_get_lease_time_args {
218 struct nfs4_sequence_args la_seq_args;
221 struct nfs4_get_lease_time_res {
222 struct nfs4_sequence_res lr_seq_res;
223 struct nfs_fsinfo *lr_fsinfo;
226 struct xdr_stream;
227 struct nfs4_xdr_opaque_data;
229 struct nfs4_xdr_opaque_ops {
230 void (*encode)(struct xdr_stream *, const void *args,
231 const struct nfs4_xdr_opaque_data *);
232 void (*free)(struct nfs4_xdr_opaque_data *);
235 struct nfs4_xdr_opaque_data {
236 const struct nfs4_xdr_opaque_ops *ops;
242 struct nfs4_layoutdriver_data {
243 struct page **pages;
248 struct pnfs_layout_range {
254 struct nfs4_layoutget_args {
255 struct nfs4_sequence_args seq_args;
257 struct pnfs_layout_range range;
260 struct inode *inode;
261 struct nfs_open_context *ctx;
263 struct nfs4_layoutdriver_data layout;
266 struct nfs4_layoutget_res {
267 struct nfs4_sequence_res seq_res;
270 struct pnfs_layout_range range;
273 struct nfs4_layoutdriver_data *layoutp;
276 struct nfs4_layoutget {
277 struct nfs4_layoutget_args args;
278 struct nfs4_layoutget_res res;
279 const struct cred *cred;
280 struct pnfs_layout_hdr *lo;
284 struct nfs4_getdeviceinfo_args {
285 struct nfs4_sequence_args seq_args;
286 struct pnfs_device *pdev;
290 struct nfs4_getdeviceinfo_res {
291 struct nfs4_sequence_res seq_res;
292 struct pnfs_device *pdev;
296 struct nfs4_layoutcommit_args {
297 struct nfs4_sequence_args seq_args;
300 struct inode *inode;
303 struct page *layoutupdate_page;
304 struct page **layoutupdate_pages;
308 struct nfs4_layoutcommit_res {
309 struct nfs4_sequence_res seq_res;
310 struct nfs_fattr *fattr;
311 const struct nfs_server *server;
315 struct nfs4_layoutcommit_data {
316 struct rpc_task task;
317 struct nfs_fattr fattr;
318 struct list_head lseg_list;
319 const struct cred *cred;
320 struct inode *inode;
321 struct nfs4_layoutcommit_args args;
322 struct nfs4_layoutcommit_res res;
325 struct nfs4_layoutreturn_args {
326 struct nfs4_sequence_args seq_args;
327 struct pnfs_layout_hdr *layout;
328 struct inode *inode;
329 struct pnfs_layout_range range;
332 struct nfs4_xdr_opaque_data *ld_private;
335 struct nfs4_layoutreturn_res {
336 struct nfs4_sequence_res seq_res;
341 struct nfs4_layoutreturn {
342 struct nfs4_layoutreturn_args args;
343 struct nfs4_layoutreturn_res res;
344 const struct cred *cred;
345 struct nfs_client *clp;
346 struct inode *inode;
348 struct nfs4_xdr_opaque_data ld_private;
353 struct nfs42_layoutstat_args;
354 struct nfs42_layoutstat_devinfo;
355 typedef void (*layoutstats_encode_t)(struct xdr_stream *,
356 struct nfs42_layoutstat_args *,
357 struct nfs42_layoutstat_devinfo *);
360 struct nfs42_layoutstat_devinfo {
361 struct nfs4_deviceid dev_id;
369 struct nfs4_xdr_opaque_data ld_private;
372 struct nfs42_layoutstat_args {
373 struct nfs4_sequence_args seq_args;
374 struct nfs_fh *fh;
375 struct inode *inode;
378 struct nfs42_layoutstat_devinfo *devinfo;
381 struct nfs42_layoutstat_res {
382 struct nfs4_sequence_res seq_res;
387 struct nfs42_layoutstat_data {
388 struct inode *inode;
389 struct nfs42_layoutstat_args args;
390 struct nfs42_layoutstat_res res;
393 struct nfs42_device_error {
394 struct nfs4_deviceid dev_id;
399 struct nfs42_layout_error {
403 struct nfs42_device_error errors[1];
408 struct nfs42_layouterror_args {
409 struct nfs4_sequence_args seq_args;
410 struct inode *inode;
412 struct nfs42_layout_error errors[NFS42_LAYOUTERROR_MAX];
415 struct nfs42_layouterror_res {
416 struct nfs4_sequence_res seq_res;
421 struct nfs42_layouterror_data {
422 struct nfs42_layouterror_args args;
423 struct nfs42_layouterror_res res;
424 struct inode *inode;
425 struct pnfs_layout_segment *lseg;
428 struct nfs42_clone_args {
429 struct nfs4_sequence_args seq_args;
430 struct nfs_fh *src_fh;
431 struct nfs_fh *dst_fh;
440 struct nfs42_clone_res {
441 struct nfs4_sequence_res seq_res;
443 struct nfs_fattr *dst_fattr;
444 const struct nfs_server *server;
447 struct stateowner_id {
455 struct nfs_openargs {
456 struct nfs4_sequence_args seq_args;
457 const struct nfs_fh * fh;
458 struct nfs_seqid * seqid;
464 struct stateowner_id id;
466 struct {
467 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */
473 const struct qstr * name;
474 const struct nfs_server *server; /* Needed for ID mapping */
479 const struct nfs4_label *label;
481 struct nfs4_layoutget_args *lg_args;
484 struct nfs_openres {
485 struct nfs4_sequence_res seq_res;
487 struct nfs_fh fh;
488 struct nfs4_change_info cinfo;
490 struct nfs_fattr * f_attr;
491 struct nfs_seqid * seqid;
492 const struct nfs_server *server;
498 struct nfs4_string *owner;
499 struct nfs4_string *group_owner;
503 struct nfs4_layoutget_res *lg_res;
509 struct nfs_open_confirmargs {
510 struct nfs4_sequence_args seq_args;
511 const struct nfs_fh * fh;
513 struct nfs_seqid * seqid;
516 struct nfs_open_confirmres {
517 struct nfs4_sequence_res seq_res;
519 struct nfs_seqid * seqid;
525 struct nfs_closeargs {
526 struct nfs4_sequence_args seq_args;
527 struct nfs_fh * fh;
529 struct nfs_seqid * seqid;
534 struct nfs4_layoutreturn_args *lr_args;
537 struct nfs_closeres {
538 struct nfs4_sequence_res seq_res;
540 struct nfs_fattr * fattr;
541 struct nfs_seqid * seqid;
542 const struct nfs_server *server;
543 struct nfs4_layoutreturn_res *lr_res;
549 struct nfs_lowner {
555 struct nfs_lock_args {
556 struct nfs4_sequence_args seq_args;
557 struct nfs_fh * fh;
558 struct file_lock * fl;
559 struct nfs_seqid * lock_seqid;
561 struct nfs_seqid * open_seqid;
563 struct nfs_lowner lock_owner;
570 struct nfs_lock_res {
571 struct nfs4_sequence_res seq_res;
573 struct nfs_seqid * lock_seqid;
574 struct nfs_seqid * open_seqid;
577 struct nfs_locku_args {
578 struct nfs4_sequence_args seq_args;
579 struct nfs_fh * fh;
580 struct file_lock * fl;
581 struct nfs_seqid * seqid;
585 struct nfs_locku_res {
586 struct nfs4_sequence_res seq_res;
588 struct nfs_seqid * seqid;
591 struct nfs_lockt_args {
592 struct nfs4_sequence_args seq_args;
593 struct nfs_fh * fh;
594 struct file_lock * fl;
595 struct nfs_lowner lock_owner;
598 struct nfs_lockt_res {
599 struct nfs4_sequence_res seq_res;
600 struct file_lock * denied; /* LOCK, LOCKT failed */
603 struct nfs_release_lockowner_args {
604 struct nfs4_sequence_args seq_args;
605 struct nfs_lowner lock_owner;
608 struct nfs_release_lockowner_res {
609 struct nfs4_sequence_res seq_res;
612 struct nfs4_delegreturnargs {
613 struct nfs4_sequence_args seq_args;
614 const struct nfs_fh *fhandle;
618 struct nfs4_layoutreturn_args *lr_args;
621 struct nfs4_delegreturnres {
622 struct nfs4_sequence_res seq_res;
623 struct nfs_fattr * fattr;
624 struct nfs_server *server;
625 struct nfs4_layoutreturn_res *lr_res;
632 struct nfs_write_verifier {
636 struct nfs_writeverf {
637 struct nfs_write_verifier verifier;
644 struct nfs_pgio_args {
645 struct nfs4_sequence_args seq_args;
646 struct nfs_fh * fh;
647 struct nfs_open_context *context;
648 struct nfs_lock_context *lock_context;
653 struct page ** pages;
656 struct {
664 struct nfs_pgio_res {
665 struct nfs4_sequence_res seq_res;
666 struct nfs_fattr * fattr;
670 struct {
675 struct {
676 struct nfs_writeverf * verf; /* used by write */
677 const struct nfs_server *server; /* used by write */
685 struct nfs_commitargs {
686 struct nfs4_sequence_args seq_args;
687 struct nfs_fh *fh;
693 struct nfs_commitres {
694 struct nfs4_sequence_res seq_res;
696 struct nfs_fattr *fattr;
697 struct nfs_writeverf *verf;
698 const struct nfs_server *server;
704 struct nfs_removeargs {
705 struct nfs4_sequence_args seq_args;
706 const struct nfs_fh *fh;
707 struct qstr name;
710 struct nfs_removeres {
711 struct nfs4_sequence_res seq_res;
712 struct nfs_server *server;
713 struct nfs_fattr *dir_attr;
714 struct nfs4_change_info cinfo;
720 struct nfs_renameargs {
721 struct nfs4_sequence_args seq_args;
722 const struct nfs_fh *old_dir;
723 const struct nfs_fh *new_dir;
724 const struct qstr *old_name;
725 const struct qstr *new_name;
728 struct nfs_renameres {
729 struct nfs4_sequence_res seq_res;
730 struct nfs_server *server;
731 struct nfs4_change_info old_cinfo;
732 struct nfs_fattr *old_fattr;
733 struct nfs4_change_info new_cinfo;
734 struct nfs_fattr *new_fattr;
739 struct nfs_auth_info {
745 * Argument struct for decode_entry function
747 struct nfs_entry {
753 struct nfs_fh * fh;
754 struct nfs_fattr * fattr;
756 struct nfs_server * server;
759 struct nfs_readdir_arg {
760 struct dentry *dentry;
761 const struct cred *cred;
764 struct page **pages;
769 struct nfs_readdir_res {
776 struct nfs_sattrargs {
777 struct nfs_fh * fh;
778 struct iattr * sattr;
781 struct nfs_diropargs {
782 struct nfs_fh * fh;
787 struct nfs_createargs {
788 struct nfs_fh * fh;
791 struct iattr * sattr;
794 struct nfs_setattrargs {
795 struct nfs4_sequence_args seq_args;
796 struct nfs_fh * fh;
798 struct iattr * iap;
799 const struct nfs_server * server; /* Needed for name mapping */
801 const struct nfs4_label *label;
811 struct nfs_setaclargs {
812 struct nfs4_sequence_args seq_args;
813 struct nfs_fh * fh;
816 struct page ** acl_pages;
819 struct nfs_setaclres {
820 struct nfs4_sequence_res seq_res;
823 struct nfs_getaclargs {
824 struct nfs4_sequence_args seq_args;
825 struct nfs_fh * fh;
828 struct page ** acl_pages;
833 struct nfs_getaclres {
834 struct nfs4_sequence_res seq_res;
839 struct page * acl_scratch;
842 struct nfs_setattrres {
843 struct nfs4_sequence_res seq_res;
844 struct nfs_fattr * fattr;
845 const struct nfs_server * server;
848 struct nfs_linkargs {
849 struct nfs_fh * fromfh;
850 struct nfs_fh * tofh;
855 struct nfs_symlinkargs {
856 struct nfs_fh * fromfh;
859 struct page ** pages;
861 struct iattr * sattr;
864 struct nfs_readdirargs {
865 struct nfs_fh * fh;
868 struct page ** pages;
871 struct nfs3_getaclargs {
872 struct nfs_fh * fh;
874 struct page ** pages;
877 struct nfs3_setaclargs {
878 struct inode * inode;
880 struct posix_acl * acl_access;
881 struct posix_acl * acl_default;
884 struct page ** pages;
887 struct nfs_diropok {
888 struct nfs_fh * fh;
889 struct nfs_fattr * fattr;
892 struct nfs_readlinkargs {
893 struct nfs_fh * fh;
896 struct page ** pages;
899 struct nfs3_sattrargs {
900 struct nfs_fh * fh;
901 struct iattr * sattr;
903 struct timespec64 guardtime;
906 struct nfs3_diropargs {
907 struct nfs_fh * fh;
912 struct nfs3_accessargs {
913 struct nfs_fh * fh;
917 struct nfs3_createargs {
918 struct nfs_fh * fh;
921 struct iattr * sattr;
926 struct nfs3_mkdirargs {
927 struct nfs_fh * fh;
930 struct iattr * sattr;
933 struct nfs3_symlinkargs {
934 struct nfs_fh * fromfh;
937 struct page ** pages;
939 struct iattr * sattr;
942 struct nfs3_mknodargs {
943 struct nfs_fh * fh;
947 struct iattr * sattr;
951 struct nfs3_linkargs {
952 struct nfs_fh * fromfh;
953 struct nfs_fh * tofh;
958 struct nfs3_readdirargs {
959 struct nfs_fh * fh;
964 struct page ** pages;
967 struct nfs3_diropres {
968 struct nfs_fattr * dir_attr;
969 struct nfs_fh * fh;
970 struct nfs_fattr * fattr;
973 struct nfs3_accessres {
974 struct nfs_fattr * fattr;
978 struct nfs3_readlinkargs {
979 struct nfs_fh * fh;
982 struct page ** pages;
985 struct nfs3_linkres {
986 struct nfs_fattr * dir_attr;
987 struct nfs_fattr * fattr;
990 struct nfs3_readdirres {
991 struct nfs_fattr * dir_attr;
996 struct nfs3_getaclres {
997 struct nfs_fattr * fattr;
1001 struct posix_acl * acl_access;
1002 struct posix_acl * acl_default;
1009 struct nfs4_accessargs {
1010 struct nfs4_sequence_args seq_args;
1011 const struct nfs_fh * fh;
1016 struct nfs4_accessres {
1017 struct nfs4_sequence_res seq_res;
1018 const struct nfs_server * server;
1019 struct nfs_fattr * fattr;
1024 struct nfs4_create_arg {
1025 struct nfs4_sequence_args seq_args;
1028 struct {
1029 struct page ** pages;
1032 struct {
1037 const struct qstr * name;
1038 const struct nfs_server * server;
1039 const struct iattr * attrs;
1040 const struct nfs_fh * dir_fh;
1042 const struct nfs4_label *label;
1046 struct nfs4_create_res {
1047 struct nfs4_sequence_res seq_res;
1048 const struct nfs_server * server;
1049 struct nfs_fh * fh;
1050 struct nfs_fattr * fattr;
1051 struct nfs4_change_info dir_cinfo;
1054 struct nfs4_fsinfo_arg {
1055 struct nfs4_sequence_args seq_args;
1056 const struct nfs_fh * fh;
1060 struct nfs4_fsinfo_res {
1061 struct nfs4_sequence_res seq_res;
1062 struct nfs_fsinfo *fsinfo;
1065 struct nfs4_getattr_arg {
1066 struct nfs4_sequence_args seq_args;
1067 const struct nfs_fh * fh;
1071 struct nfs4_getattr_res {
1072 struct nfs4_sequence_res seq_res;
1073 const struct nfs_server * server;
1074 struct nfs_fattr * fattr;
1077 struct nfs4_link_arg {
1078 struct nfs4_sequence_args seq_args;
1079 const struct nfs_fh * fh;
1080 const struct nfs_fh * dir_fh;
1081 const struct qstr * name;
1085 struct nfs4_link_res {
1086 struct nfs4_sequence_res seq_res;
1087 const struct nfs_server * server;
1088 struct nfs_fattr * fattr;
1089 struct nfs4_change_info cinfo;
1090 struct nfs_fattr * dir_attr;
1093 struct nfs4_lookup_arg {
1094 struct nfs4_sequence_args seq_args;
1095 const struct nfs_fh * dir_fh;
1096 const struct qstr * name;
1100 struct nfs4_lookup_res {
1101 struct nfs4_sequence_res seq_res;
1102 const struct nfs_server * server;
1103 struct nfs_fattr * fattr;
1104 struct nfs_fh * fh;
1107 struct nfs4_lookupp_arg {
1108 struct nfs4_sequence_args seq_args;
1109 const struct nfs_fh *fh;
1113 struct nfs4_lookupp_res {
1114 struct nfs4_sequence_res seq_res;
1115 const struct nfs_server *server;
1116 struct nfs_fattr *fattr;
1117 struct nfs_fh *fh;
1120 struct nfs4_lookup_root_arg {
1121 struct nfs4_sequence_args seq_args;
1125 struct nfs4_pathconf_arg {
1126 struct nfs4_sequence_args seq_args;
1127 const struct nfs_fh * fh;
1131 struct nfs4_pathconf_res {
1132 struct nfs4_sequence_res seq_res;
1133 struct nfs_pathconf *pathconf;
1136 struct nfs4_readdir_arg {
1137 struct nfs4_sequence_args seq_args;
1138 const struct nfs_fh * fh;
1142 struct page ** pages; /* zero-copy data */
1148 struct nfs4_readdir_res {
1149 struct nfs4_sequence_res seq_res;
1154 struct nfs4_readlink {
1155 struct nfs4_sequence_args seq_args;
1156 const struct nfs_fh * fh;
1159 struct page ** pages; /* zero-copy data */
1162 struct nfs4_readlink_res {
1163 struct nfs4_sequence_res seq_res;
1166 struct nfs4_setclientid {
1173 struct nfs_client *sc_clnt;
1174 struct rpc_cred *sc_cred;
1177 struct nfs4_setclientid_res {
1182 struct nfs4_statfs_arg {
1183 struct nfs4_sequence_args seq_args;
1184 const struct nfs_fh * fh;
1188 struct nfs4_statfs_res {
1189 struct nfs4_sequence_res seq_res;
1190 struct nfs_fsstat *fsstat;
1193 struct nfs4_server_caps_arg {
1194 struct nfs4_sequence_args seq_args;
1195 struct nfs_fh *fhandle;
1199 struct nfs4_server_caps_res {
1200 struct nfs4_sequence_res seq_res;
1212 struct nfs4_pathname {
1214 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
1218 struct nfs4_fs_location {
1220 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
1221 struct nfs4_pathname rootpath;
1225 struct nfs4_fs_locations {
1226 struct nfs_fattr *fattr;
1227 const struct nfs_server *server;
1228 struct nfs4_pathname fs_path;
1230 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
1233 struct nfs4_fs_locations_arg {
1234 struct nfs4_sequence_args seq_args;
1235 const struct nfs_fh *dir_fh;
1236 const struct nfs_fh *fh;
1237 const struct qstr *name;
1238 struct page *page;
1244 struct nfs4_fs_locations_res {
1245 struct nfs4_sequence_res seq_res;
1246 struct nfs4_fs_locations *fs_locations;
1250 struct nfs4_secinfo4 {
1252 struct rpcsec_gss_info flavor_info;
1255 struct nfs4_secinfo_flavors {
1257 struct nfs4_secinfo4 flavors[];
1260 struct nfs4_secinfo_arg {
1261 struct nfs4_sequence_args seq_args;
1262 const struct nfs_fh *dir_fh;
1263 const struct qstr *name;
1266 struct nfs4_secinfo_res {
1267 struct nfs4_sequence_res seq_res;
1268 struct nfs4_secinfo_flavors *flavors;
1271 struct nfs4_fsid_present_arg {
1272 struct nfs4_sequence_args seq_args;
1273 const struct nfs_fh *fh;
1278 struct nfs4_fsid_present_res {
1279 struct nfs4_sequence_res seq_res;
1280 struct nfs_fh *fh;
1286 struct nfstime4 {
1293 struct pnfs_commit_bucket {
1294 struct list_head written;
1295 struct list_head committing;
1296 struct pnfs_layout_segment *lseg;
1297 struct nfs_writeverf direct_verf;
1300 struct pnfs_commit_array {
1301 struct list_head cinfo_list;
1302 struct list_head lseg_list;
1303 struct pnfs_layout_segment *lseg;
1304 struct rcu_head rcu;
1307 struct pnfs_commit_bucket buckets[];
1310 struct pnfs_ds_commit_info {
1311 struct list_head commits;
1314 const struct pnfs_commit_ops *ops;
1317 struct nfs41_state_protection {
1319 struct nfs4_op_map enforce;
1320 struct nfs4_op_map allow;
1323 struct nfs41_exchange_id_args {
1324 struct nfs_client *client;
1327 struct nfs41_state_protection state_protect;
1330 struct nfs41_server_owner {
1336 struct nfs41_server_scope {
1341 struct nfs41_impl_id {
1344 struct nfstime4 date;
1348 struct nfs41_bind_conn_to_session_args {
1349 struct nfs_client *client;
1350 struct nfs4_sessionid sessionid;
1356 struct nfs41_bind_conn_to_session_res {
1357 struct nfs4_sessionid sessionid;
1362 struct nfs41_exchange_id_res {
1366 struct nfs41_server_owner *server_owner;
1367 struct nfs41_server_scope *server_scope;
1368 struct nfs41_impl_id *impl_id;
1369 struct nfs41_state_protection state_protect;
1372 struct nfs41_create_session_args {
1373 struct nfs_client *client;
1378 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1379 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1382 struct nfs41_create_session_res {
1383 struct nfs4_sessionid sessionid;
1386 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1387 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1390 struct nfs41_reclaim_complete_args {
1391 struct nfs4_sequence_args seq_args;
1396 struct nfs41_reclaim_complete_res {
1397 struct nfs4_sequence_res seq_res;
1402 struct nfs41_secinfo_no_name_args {
1403 struct nfs4_sequence_args seq_args;
1407 struct nfs41_test_stateid_args {
1408 struct nfs4_sequence_args seq_args;
1412 struct nfs41_test_stateid_res {
1413 struct nfs4_sequence_res seq_res;
1417 struct nfs41_free_stateid_args {
1418 struct nfs4_sequence_args seq_args;
1422 struct nfs41_free_stateid_res {
1423 struct nfs4_sequence_res seq_res;
1429 struct pnfs_ds_commit_info {
1435 struct nfs42_falloc_args {
1436 struct nfs4_sequence_args seq_args;
1438 struct nfs_fh *falloc_fh;
1445 struct nfs42_falloc_res {
1446 struct nfs4_sequence_res seq_res;
1449 struct nfs_fattr *falloc_fattr;
1450 const struct nfs_server *falloc_server;
1453 struct nfs42_copy_args {
1454 struct nfs4_sequence_args seq_args;
1456 struct nfs_fh *src_fh;
1460 struct nfs_fh *dst_fh;
1466 struct nl4_server *cp_src;
1469 struct nfs42_write_res {
1472 struct nfs_writeverf verifier;
1475 struct nfs42_copy_res {
1476 struct nfs4_sequence_res seq_res;
1477 struct nfs42_write_res write_res;
1480 struct nfs_commitres commit_res;
1483 struct nfs42_offload_status_args {
1484 struct nfs4_sequence_args osa_seq_args;
1485 struct nfs_fh *osa_src_fh;
1489 struct nfs42_offload_status_res {
1490 struct nfs4_sequence_res osr_seq_res;
1495 struct nfs42_copy_notify_args {
1496 struct nfs4_sequence_args cna_seq_args;
1498 struct nfs_fh *cna_src_fh;
1500 struct nl4_server cna_dst;
1503 struct nfs42_copy_notify_res {
1504 struct nfs4_sequence_res cnr_seq_res;
1506 struct nfstime4 cnr_lease_time;
1508 struct nl4_server cnr_src;
1511 struct nfs42_seek_args {
1512 struct nfs4_sequence_args seq_args;
1514 struct nfs_fh *sa_fh;
1520 struct nfs42_seek_res {
1521 struct nfs4_sequence_res seq_res;
1528 struct nfs42_setxattrargs {
1529 struct nfs4_sequence_args seq_args;
1530 struct nfs_fh *fh;
1535 struct page **xattr_pages;
1538 struct nfs42_setxattrres {
1539 struct nfs4_sequence_res seq_res;
1540 struct nfs4_change_info cinfo;
1541 struct nfs_fattr *fattr;
1542 const struct nfs_server *server;
1545 struct nfs42_getxattrargs {
1546 struct nfs4_sequence_args seq_args;
1547 struct nfs_fh *fh;
1550 struct page **xattr_pages;
1553 struct nfs42_getxattrres {
1554 struct nfs4_sequence_res seq_res;
1558 struct nfs42_listxattrsargs {
1559 struct nfs4_sequence_args seq_args;
1560 struct nfs_fh *fh;
1563 struct page **xattr_pages;
1566 struct nfs42_listxattrsres {
1567 struct nfs4_sequence_res seq_res;
1568 struct page *scratch;
1576 struct nfs42_removexattrargs {
1577 struct nfs4_sequence_args seq_args;
1578 struct nfs_fh *fh;
1582 struct nfs42_removexattrres {
1583 struct nfs4_sequence_res seq_res;
1584 struct nfs4_change_info cinfo;
1589 struct nfs_page;
1593 struct nfs_page_array {
1594 struct page **pagevec;
1596 struct page *page_array[NFS_PAGEVEC_SIZE];
1610 struct nfs_io_completion;
1611 struct nfs_pgio_header {
1612 struct inode *inode;
1613 const struct cred *cred;
1614 struct list_head pages;
1615 struct nfs_page *req;
1616 struct nfs_writeverf verf; /* Used for writes */
1618 struct pnfs_layout_segment *lseg;
1620 const struct rpc_call_ops *mds_ops;
1621 void (*release) (struct nfs_pgio_header *hdr);
1622 const struct nfs_pgio_completion_ops *completion_ops;
1623 const struct nfs_rw_ops *rw_ops;
1624 struct nfs_io_completion *io_completion;
1625 struct nfs_direct_req *dreq;
1638 struct rpc_task task;
1639 struct nfs_fattr fattr;
1640 struct nfs_pgio_args args; /* argument struct */
1641 struct nfs_pgio_res res; /* result struct */
1643 int (*pgio_done_cb)(struct rpc_task *, struct nfs_pgio_header *);
1645 struct nfs_page_array page_array;
1646 struct nfs_client *ds_clp; /* pNFS data server */
1651 struct nfs_mds_commit_info {
1654 struct list_head list;
1657 struct nfs_commit_info;
1658 struct nfs_commit_data;
1659 struct nfs_inode;
1660 struct nfs_commit_completion_ops {
1661 void (*completion) (struct nfs_commit_data *data);
1662 void (*resched_write) (struct nfs_commit_info *, struct nfs_page *);
1665 struct nfs_commit_info {
1666 struct inode *inode; /* Needed for inode->i_lock */
1667 struct nfs_mds_commit_info *mds;
1668 struct pnfs_ds_commit_info *ds;
1669 struct nfs_direct_req *dreq; /* O_DIRECT request */
1670 const struct nfs_commit_completion_ops *completion_ops;
1673 struct nfs_commit_data {
1674 struct rpc_task task;
1675 struct inode *inode;
1676 const struct cred *cred;
1677 struct nfs_fattr fattr;
1678 struct nfs_writeverf verf;
1679 struct list_head pages; /* Coalesced requests we wish to flush */
1680 struct list_head list; /* lists of struct nfs_write_data */
1681 struct nfs_direct_req *dreq; /* O_DIRECT request */
1682 struct nfs_commitargs args; /* argument struct */
1683 struct nfs_commitres res; /* result struct */
1684 struct nfs_open_context *context;
1685 struct pnfs_layout_segment *lseg;
1686 struct nfs_client *ds_clp; /* pNFS data server */
1689 const struct rpc_call_ops *mds_ops;
1690 const struct nfs_commit_completion_ops *completion_ops;
1691 int (*commit_done_cb) (struct rpc_task *task, struct nfs_commit_data *data);
1695 struct nfs_pgio_completion_ops {
1696 void (*error_cleanup)(struct list_head *head, int);
1697 void (*init_hdr)(struct nfs_pgio_header *hdr);
1698 void (*completion)(struct nfs_pgio_header *hdr);
1699 void (*reschedule_io)(struct nfs_pgio_header *hdr);
1702 struct nfs_unlinkdata {
1703 struct nfs_removeargs args;
1704 struct nfs_removeres res;
1705 struct dentry *dentry;
1707 const struct cred *cred;
1708 struct nfs_fattr dir_attr;
1712 struct nfs_renamedata {
1713 struct nfs_renameargs args;
1714 struct nfs_renameres res;
1715 struct rpc_task task;
1716 const struct cred *cred;
1717 struct inode *old_dir;
1718 struct dentry *old_dentry;
1719 struct nfs_fattr old_fattr;
1720 struct inode *new_dir;
1721 struct dentry *new_dentry;
1722 struct nfs_fattr new_fattr;
1723 void (*complete)(struct rpc_task *, struct nfs_renamedata *);
1728 struct nfs_access_entry;
1729 struct nfs_client;
1730 struct rpc_timeout;
1731 struct nfs_subversion;
1732 struct nfs_mount_info;
1733 struct nfs_client_initdata;
1734 struct nfs_pageio_descriptor;
1735 struct fs_context;
1740 struct nfs_rpc_ops {
1742 const struct dentry_operations *dentry_ops;
1743 const struct inode_operations *dir_inode_ops;
1744 const struct inode_operations *file_inode_ops;
1745 const struct file_operations *file_ops;
1746 const struct nlmclnt_operations *nlmclnt_ops;
1748 int (*getroot) (struct nfs_server *, struct nfs_fh *,
1749 struct nfs_fsinfo *);
1750 int (*submount) (struct fs_context *, struct nfs_server *);
1751 int (*try_get_tree) (struct fs_context *);
1752 int (*getattr) (struct nfs_server *, struct nfs_fh *,
1753 struct nfs_fattr *, struct inode *);
1754 int (*setattr) (struct dentry *, struct nfs_fattr *,
1755 struct iattr *);
1756 int (*lookup) (struct inode *, struct dentry *,
1757 struct nfs_fh *, struct nfs_fattr *);
1758 int (*lookupp) (struct inode *, struct nfs_fh *,
1759 struct nfs_fattr *);
1760 int (*access) (struct inode *, struct nfs_access_entry *, const struct cred *);
1761 int (*readlink)(struct inode *, struct page *, unsigned int,
1763 int (*create) (struct inode *, struct dentry *,
1764 struct iattr *, int);
1765 int (*remove) (struct inode *, struct dentry *);
1766 void (*unlink_setup) (struct rpc_message *, struct dentry *, struct inode *);
1767 void (*unlink_rpc_prepare) (struct rpc_task *, struct nfs_unlinkdata *);
1768 int (*unlink_done) (struct rpc_task *, struct inode *);
1769 void (*rename_setup) (struct rpc_message *msg,
1770 struct dentry *old_dentry,
1771 struct dentry *new_dentry);
1772 void (*rename_rpc_prepare)(struct rpc_task *task, struct nfs_renamedata *);
1773 int (*rename_done) (struct rpc_task *task, struct inode *old_dir, struct inode *new_dir);
1774 int (*link) (struct inode *, struct inode *, const struct qstr *);
1775 int (*symlink) (struct inode *, struct dentry *, struct folio *,
1776 unsigned int, struct iattr *);
1777 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
1778 int (*rmdir) (struct inode *, const struct qstr *);
1779 int (*readdir) (struct nfs_readdir_arg *, struct nfs_readdir_res *);
1780 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
1782 int (*statfs) (struct nfs_server *, struct nfs_fh *,
1783 struct nfs_fsstat *);
1784 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
1785 struct nfs_fsinfo *);
1786 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
1787 struct nfs_pathconf *);
1788 int (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
1789 int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, bool);
1790 int (*pgio_rpc_prepare)(struct rpc_task *,
1791 struct nfs_pgio_header *);
1792 void (*read_setup)(struct nfs_pgio_header *, struct rpc_message *);
1793 int (*read_done)(struct rpc_task *, struct nfs_pgio_header *);
1794 void (*write_setup)(struct nfs_pgio_header *, struct rpc_message *,
1795 struct rpc_clnt **);
1796 int (*write_done)(struct rpc_task *, struct nfs_pgio_header *);
1797 void (*commit_setup) (struct nfs_commit_data *, struct rpc_message *,
1798 struct rpc_clnt **);
1799 void (*commit_rpc_prepare)(struct rpc_task *, struct nfs_commit_data *);
1800 int (*commit_done) (struct rpc_task *, struct nfs_commit_data *);
1801 int (*lock)(struct file *, int, struct file_lock *);
1802 int (*lock_check_bounds)(const struct file_lock *);
1803 void (*clear_acl_cache)(struct inode *);
1804 void (*close_context)(struct nfs_open_context *ctx, int);
1805 struct inode * (*open_context) (struct inode *dir,
1806 struct nfs_open_context *ctx,
1808 struct iattr *iattr,
1810 int (*have_delegation)(struct inode *, fmode_t);
1811 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1812 struct nfs_client *(*init_client) (struct nfs_client *,
1813 const struct nfs_client_initdata *);
1814 void (*free_client) (struct nfs_client *);
1815 struct nfs_server *(*create_server)(struct fs_context *);
1816 struct nfs_server *(*clone_server)(struct nfs_server *, struct nfs_fh *,
1817 struct nfs_fattr *, rpc_authflavor_t);
1818 int (*discover_trunking)(struct nfs_server *, struct nfs_fh *);
1819 void (*enable_swap)(struct inode *inode);
1820 void (*disable_swap)(struct inode *inode);
1833 extern const struct nfs_rpc_ops nfs_v2_clientops;
1834 extern const struct nfs_rpc_ops nfs_v3_clientops;
1835 extern const struct nfs_rpc_ops nfs_v4_clientops;
1836 extern const struct rpc_version nfs_version2;
1837 extern const struct rpc_version nfs_version3;
1838 extern const struct rpc_version nfs_version4;
1840 extern const struct rpc_version nfsacl_version3;
1841 extern const struct rpc_program nfsacl_program;