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 {
452 struct nfs4_open_delegation {
455 struct {
461 struct {
471 struct nfs_openargs {
472 struct nfs4_sequence_args seq_args;
473 const struct nfs_fh * fh;
474 struct nfs_seqid * seqid;
480 struct stateowner_id id;
482 struct {
483 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */
489 const struct qstr * name;
490 const struct nfs_server *server; /* Needed for ID mapping */
495 const struct nfs4_label *label;
497 struct nfs4_layoutget_args *lg_args;
500 struct nfs_openres {
501 struct nfs4_sequence_res seq_res;
503 struct nfs_fh fh;
504 struct nfs4_change_info cinfo;
506 struct nfs_fattr * f_attr;
507 struct nfs_seqid * seqid;
508 const struct nfs_server *server;
510 struct nfs4_string *owner;
511 struct nfs4_string *group_owner;
512 struct nfs4_open_delegation delegation;
516 struct nfs4_layoutget_res *lg_res;
522 struct nfs_open_confirmargs {
523 struct nfs4_sequence_args seq_args;
524 const struct nfs_fh * fh;
526 struct nfs_seqid * seqid;
529 struct nfs_open_confirmres {
530 struct nfs4_sequence_res seq_res;
532 struct nfs_seqid * seqid;
538 struct nfs_closeargs {
539 struct nfs4_sequence_args seq_args;
540 struct nfs_fh * fh;
542 struct nfs_seqid * seqid;
547 struct nfs4_layoutreturn_args *lr_args;
550 struct nfs_closeres {
551 struct nfs4_sequence_res seq_res;
553 struct nfs_fattr * fattr;
554 struct nfs_seqid * seqid;
555 const struct nfs_server *server;
556 struct nfs4_layoutreturn_res *lr_res;
562 struct nfs_lowner {
568 struct nfs_lock_args {
569 struct nfs4_sequence_args seq_args;
570 struct nfs_fh * fh;
571 struct file_lock * fl;
572 struct nfs_seqid * lock_seqid;
574 struct nfs_seqid * open_seqid;
576 struct nfs_lowner lock_owner;
583 struct nfs_lock_res {
584 struct nfs4_sequence_res seq_res;
586 struct nfs_seqid * lock_seqid;
587 struct nfs_seqid * open_seqid;
590 struct nfs_locku_args {
591 struct nfs4_sequence_args seq_args;
592 struct nfs_fh * fh;
593 struct file_lock * fl;
594 struct nfs_seqid * seqid;
598 struct nfs_locku_res {
599 struct nfs4_sequence_res seq_res;
601 struct nfs_seqid * seqid;
604 struct nfs_lockt_args {
605 struct nfs4_sequence_args seq_args;
606 struct nfs_fh * fh;
607 struct file_lock * fl;
608 struct nfs_lowner lock_owner;
611 struct nfs_lockt_res {
612 struct nfs4_sequence_res seq_res;
613 struct file_lock * denied; /* LOCK, LOCKT failed */
616 struct nfs_release_lockowner_args {
617 struct nfs4_sequence_args seq_args;
618 struct nfs_lowner lock_owner;
621 struct nfs_release_lockowner_res {
622 struct nfs4_sequence_res seq_res;
625 struct nfs4_delegattr {
626 struct timespec64 atime;
627 struct timespec64 mtime;
632 struct nfs4_delegreturnargs {
633 struct nfs4_sequence_args seq_args;
634 const struct nfs_fh *fhandle;
638 struct nfs4_layoutreturn_args *lr_args;
639 struct nfs4_delegattr *sattr_args;
642 struct nfs4_delegreturnres {
643 struct nfs4_sequence_res seq_res;
644 struct nfs_fattr * fattr;
645 struct nfs_server *server;
646 struct nfs4_layoutreturn_res *lr_res;
655 struct nfs_write_verifier {
659 struct nfs_writeverf {
660 struct nfs_write_verifier verifier;
667 struct nfs_pgio_args {
668 struct nfs4_sequence_args seq_args;
669 struct nfs_fh * fh;
670 struct nfs_open_context *context;
671 struct nfs_lock_context *lock_context;
676 struct page ** pages;
679 struct {
687 struct nfs_pgio_res {
688 struct nfs4_sequence_res seq_res;
689 struct nfs_fattr * fattr;
693 struct {
698 struct {
699 struct nfs_writeverf * verf; /* used by write */
700 const struct nfs_server *server; /* used by write */
708 struct nfs_commitargs {
709 struct nfs4_sequence_args seq_args;
710 struct nfs_fh *fh;
716 struct nfs_commitres {
717 struct nfs4_sequence_res seq_res;
719 struct nfs_fattr *fattr;
720 struct nfs_writeverf *verf;
721 const struct nfs_server *server;
727 struct nfs_removeargs {
728 struct nfs4_sequence_args seq_args;
729 const struct nfs_fh *fh;
730 struct qstr name;
733 struct nfs_removeres {
734 struct nfs4_sequence_res seq_res;
735 struct nfs_server *server;
736 struct nfs_fattr *dir_attr;
737 struct nfs4_change_info cinfo;
743 struct nfs_renameargs {
744 struct nfs4_sequence_args seq_args;
745 const struct nfs_fh *old_dir;
746 const struct nfs_fh *new_dir;
747 const struct qstr *old_name;
748 const struct qstr *new_name;
751 struct nfs_renameres {
752 struct nfs4_sequence_res seq_res;
753 struct nfs_server *server;
754 struct nfs4_change_info old_cinfo;
755 struct nfs_fattr *old_fattr;
756 struct nfs4_change_info new_cinfo;
757 struct nfs_fattr *new_fattr;
762 struct nfs_auth_info {
768 * Argument struct for decode_entry function
770 struct nfs_entry {
776 struct nfs_fh * fh;
777 struct nfs_fattr * fattr;
779 struct nfs_server * server;
782 struct nfs_readdir_arg {
783 struct dentry *dentry;
784 const struct cred *cred;
787 struct page **pages;
792 struct nfs_readdir_res {
799 struct nfs_sattrargs {
800 struct nfs_fh * fh;
801 struct iattr * sattr;
804 struct nfs_diropargs {
805 struct nfs_fh * fh;
810 struct nfs_createargs {
811 struct nfs_fh * fh;
814 struct iattr * sattr;
817 struct nfs_setattrargs {
818 struct nfs4_sequence_args seq_args;
819 struct nfs_fh * fh;
821 struct iattr * iap;
822 const struct nfs_server * server; /* Needed for name mapping */
824 const struct nfs4_label *label;
834 struct nfs_setaclargs {
835 struct nfs4_sequence_args seq_args;
836 struct nfs_fh * fh;
839 struct page ** acl_pages;
842 struct nfs_setaclres {
843 struct nfs4_sequence_res seq_res;
846 struct nfs_getaclargs {
847 struct nfs4_sequence_args seq_args;
848 struct nfs_fh * fh;
851 struct page ** acl_pages;
856 struct nfs_getaclres {
857 struct nfs4_sequence_res seq_res;
862 struct page * acl_scratch;
865 struct nfs_setattrres {
866 struct nfs4_sequence_res seq_res;
867 struct nfs_fattr * fattr;
868 const struct nfs_server * server;
871 struct nfs_linkargs {
872 struct nfs_fh * fromfh;
873 struct nfs_fh * tofh;
878 struct nfs_symlinkargs {
879 struct nfs_fh * fromfh;
882 struct page ** pages;
884 struct iattr * sattr;
887 struct nfs_readdirargs {
888 struct nfs_fh * fh;
891 struct page ** pages;
894 struct nfs3_getaclargs {
895 struct nfs_fh * fh;
897 struct page ** pages;
900 struct nfs3_setaclargs {
901 struct inode * inode;
903 struct posix_acl * acl_access;
904 struct posix_acl * acl_default;
907 struct page ** pages;
910 struct nfs_diropok {
911 struct nfs_fh * fh;
912 struct nfs_fattr * fattr;
915 struct nfs_readlinkargs {
916 struct nfs_fh * fh;
919 struct page ** pages;
922 struct nfs3_sattrargs {
923 struct nfs_fh * fh;
924 struct iattr * sattr;
926 struct timespec64 guardtime;
929 struct nfs3_diropargs {
930 struct nfs_fh * fh;
935 struct nfs3_accessargs {
936 struct nfs_fh * fh;
940 struct nfs3_createargs {
941 struct nfs_fh * fh;
944 struct iattr * sattr;
949 struct nfs3_mkdirargs {
950 struct nfs_fh * fh;
953 struct iattr * sattr;
956 struct nfs3_symlinkargs {
957 struct nfs_fh * fromfh;
960 struct page ** pages;
962 struct iattr * sattr;
965 struct nfs3_mknodargs {
966 struct nfs_fh * fh;
970 struct iattr * sattr;
974 struct nfs3_linkargs {
975 struct nfs_fh * fromfh;
976 struct nfs_fh * tofh;
981 struct nfs3_readdirargs {
982 struct nfs_fh * fh;
987 struct page ** pages;
990 struct nfs3_diropres {
991 struct nfs_fattr * dir_attr;
992 struct nfs_fh * fh;
993 struct nfs_fattr * fattr;
996 struct nfs3_accessres {
997 struct nfs_fattr * fattr;
1001 struct nfs3_readlinkargs {
1002 struct nfs_fh * fh;
1005 struct page ** pages;
1008 struct nfs3_linkres {
1009 struct nfs_fattr * dir_attr;
1010 struct nfs_fattr * fattr;
1013 struct nfs3_readdirres {
1014 struct nfs_fattr * dir_attr;
1019 struct nfs3_getaclres {
1020 struct nfs_fattr * fattr;
1024 struct posix_acl * acl_access;
1025 struct posix_acl * acl_default;
1032 struct nfs4_accessargs {
1033 struct nfs4_sequence_args seq_args;
1034 const struct nfs_fh * fh;
1039 struct nfs4_accessres {
1040 struct nfs4_sequence_res seq_res;
1041 const struct nfs_server * server;
1042 struct nfs_fattr * fattr;
1047 struct nfs4_create_arg {
1048 struct nfs4_sequence_args seq_args;
1051 struct {
1052 struct page ** pages;
1055 struct {
1060 const struct qstr * name;
1061 const struct nfs_server * server;
1062 const struct iattr * attrs;
1063 const struct nfs_fh * dir_fh;
1065 const struct nfs4_label *label;
1069 struct nfs4_create_res {
1070 struct nfs4_sequence_res seq_res;
1071 const struct nfs_server * server;
1072 struct nfs_fh * fh;
1073 struct nfs_fattr * fattr;
1074 struct nfs4_change_info dir_cinfo;
1077 struct nfs4_fsinfo_arg {
1078 struct nfs4_sequence_args seq_args;
1079 const struct nfs_fh * fh;
1083 struct nfs4_fsinfo_res {
1084 struct nfs4_sequence_res seq_res;
1085 struct nfs_fsinfo *fsinfo;
1088 struct nfs4_getattr_arg {
1089 struct nfs4_sequence_args seq_args;
1090 const struct nfs_fh * fh;
1094 struct nfs4_getattr_res {
1095 struct nfs4_sequence_res seq_res;
1096 const struct nfs_server * server;
1097 struct nfs_fattr * fattr;
1100 struct nfs4_link_arg {
1101 struct nfs4_sequence_args seq_args;
1102 const struct nfs_fh * fh;
1103 const struct nfs_fh * dir_fh;
1104 const struct qstr * name;
1108 struct nfs4_link_res {
1109 struct nfs4_sequence_res seq_res;
1110 const struct nfs_server * server;
1111 struct nfs_fattr * fattr;
1112 struct nfs4_change_info cinfo;
1113 struct nfs_fattr * dir_attr;
1116 struct nfs4_lookup_arg {
1117 struct nfs4_sequence_args seq_args;
1118 const struct nfs_fh * dir_fh;
1119 const struct qstr * name;
1123 struct nfs4_lookup_res {
1124 struct nfs4_sequence_res seq_res;
1125 const struct nfs_server * server;
1126 struct nfs_fattr * fattr;
1127 struct nfs_fh * fh;
1130 struct nfs4_lookupp_arg {
1131 struct nfs4_sequence_args seq_args;
1132 const struct nfs_fh *fh;
1136 struct nfs4_lookupp_res {
1137 struct nfs4_sequence_res seq_res;
1138 const struct nfs_server *server;
1139 struct nfs_fattr *fattr;
1140 struct nfs_fh *fh;
1143 struct nfs4_lookup_root_arg {
1144 struct nfs4_sequence_args seq_args;
1148 struct nfs4_pathconf_arg {
1149 struct nfs4_sequence_args seq_args;
1150 const struct nfs_fh * fh;
1154 struct nfs4_pathconf_res {
1155 struct nfs4_sequence_res seq_res;
1156 struct nfs_pathconf *pathconf;
1159 struct nfs4_readdir_arg {
1160 struct nfs4_sequence_args seq_args;
1161 const struct nfs_fh * fh;
1165 struct page ** pages; /* zero-copy data */
1171 struct nfs4_readdir_res {
1172 struct nfs4_sequence_res seq_res;
1177 struct nfs4_readlink {
1178 struct nfs4_sequence_args seq_args;
1179 const struct nfs_fh * fh;
1182 struct page ** pages; /* zero-copy data */
1185 struct nfs4_readlink_res {
1186 struct nfs4_sequence_res seq_res;
1189 struct nfs4_setclientid {
1196 struct nfs_client *sc_clnt;
1197 struct rpc_cred *sc_cred;
1200 struct nfs4_setclientid_res {
1205 struct nfs4_statfs_arg {
1206 struct nfs4_sequence_args seq_args;
1207 const struct nfs_fh * fh;
1211 struct nfs4_statfs_res {
1212 struct nfs4_sequence_res seq_res;
1213 struct nfs_fsstat *fsstat;
1216 struct nfs4_open_caps {
1224 struct nfs4_server_caps_arg {
1225 struct nfs4_sequence_args seq_args;
1226 struct nfs_fh *fhandle;
1230 struct nfs4_server_caps_res {
1231 struct nfs4_sequence_res seq_res;
1240 struct nfs4_open_caps open_caps;
1244 struct nfs4_pathname {
1246 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
1250 struct nfs4_fs_location {
1252 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
1253 struct nfs4_pathname rootpath;
1257 struct nfs4_fs_locations {
1258 struct nfs_fattr *fattr;
1259 const struct nfs_server *server;
1260 struct nfs4_pathname fs_path;
1262 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
1265 struct nfs4_fs_locations_arg {
1266 struct nfs4_sequence_args seq_args;
1267 const struct nfs_fh *dir_fh;
1268 const struct nfs_fh *fh;
1269 const struct qstr *name;
1270 struct page *page;
1276 struct nfs4_fs_locations_res {
1277 struct nfs4_sequence_res seq_res;
1278 struct nfs4_fs_locations *fs_locations;
1282 struct nfs4_secinfo4 {
1284 struct rpcsec_gss_info flavor_info;
1287 struct nfs4_secinfo_flavors {
1289 struct nfs4_secinfo4 flavors[];
1292 struct nfs4_secinfo_arg {
1293 struct nfs4_sequence_args seq_args;
1294 const struct nfs_fh *dir_fh;
1295 const struct qstr *name;
1298 struct nfs4_secinfo_res {
1299 struct nfs4_sequence_res seq_res;
1300 struct nfs4_secinfo_flavors *flavors;
1303 struct nfs4_fsid_present_arg {
1304 struct nfs4_sequence_args seq_args;
1305 const struct nfs_fh *fh;
1310 struct nfs4_fsid_present_res {
1311 struct nfs4_sequence_res seq_res;
1312 struct nfs_fh *fh;
1318 struct nfstime4 {
1325 struct pnfs_commit_bucket {
1326 struct list_head written;
1327 struct list_head committing;
1328 struct pnfs_layout_segment *lseg;
1329 struct nfs_writeverf direct_verf;
1332 struct pnfs_commit_array {
1333 struct list_head cinfo_list;
1334 struct list_head lseg_list;
1335 struct pnfs_layout_segment *lseg;
1336 struct rcu_head rcu;
1339 struct pnfs_commit_bucket buckets[];
1342 struct pnfs_ds_commit_info {
1343 struct list_head commits;
1346 const struct pnfs_commit_ops *ops;
1349 struct nfs41_state_protection {
1351 struct nfs4_op_map enforce;
1352 struct nfs4_op_map allow;
1355 struct nfs41_exchange_id_args {
1356 struct nfs_client *client;
1359 struct nfs41_state_protection state_protect;
1362 struct nfs41_server_owner {
1368 struct nfs41_server_scope {
1373 struct nfs41_impl_id {
1376 struct nfstime4 date;
1380 struct nfs41_bind_conn_to_session_args {
1381 struct nfs_client *client;
1382 struct nfs4_sessionid sessionid;
1388 struct nfs41_bind_conn_to_session_res {
1389 struct nfs4_sessionid sessionid;
1394 struct nfs41_exchange_id_res {
1398 struct nfs41_server_owner *server_owner;
1399 struct nfs41_server_scope *server_scope;
1400 struct nfs41_impl_id *impl_id;
1401 struct nfs41_state_protection state_protect;
1404 struct nfs41_create_session_args {
1405 struct nfs_client *client;
1410 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1411 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1414 struct nfs41_create_session_res {
1415 struct nfs4_sessionid sessionid;
1418 struct nfs4_channel_attrs fc_attrs; /* Fore Channel */
1419 struct nfs4_channel_attrs bc_attrs; /* Back Channel */
1422 struct nfs41_reclaim_complete_args {
1423 struct nfs4_sequence_args seq_args;
1428 struct nfs41_reclaim_complete_res {
1429 struct nfs4_sequence_res seq_res;
1434 struct nfs41_secinfo_no_name_args {
1435 struct nfs4_sequence_args seq_args;
1439 struct nfs41_test_stateid_args {
1440 struct nfs4_sequence_args seq_args;
1444 struct nfs41_test_stateid_res {
1445 struct nfs4_sequence_res seq_res;
1449 struct nfs41_free_stateid_args {
1450 struct nfs4_sequence_args seq_args;
1454 struct nfs41_free_stateid_res {
1455 struct nfs4_sequence_res seq_res;
1461 struct pnfs_ds_commit_info {
1467 struct nfs42_falloc_args {
1468 struct nfs4_sequence_args seq_args;
1470 struct nfs_fh *falloc_fh;
1477 struct nfs42_falloc_res {
1478 struct nfs4_sequence_res seq_res;
1481 struct nfs_fattr *falloc_fattr;
1482 const struct nfs_server *falloc_server;
1485 struct nfs42_copy_args {
1486 struct nfs4_sequence_args seq_args;
1488 struct nfs_fh *src_fh;
1492 struct nfs_fh *dst_fh;
1498 struct nl4_server *cp_src;
1501 struct nfs42_write_res {
1504 struct nfs_writeverf verifier;
1507 struct nfs42_copy_res {
1508 struct nfs4_sequence_res seq_res;
1509 struct nfs42_write_res write_res;
1512 struct nfs_commitres commit_res;
1515 struct nfs42_offload_status_args {
1516 struct nfs4_sequence_args osa_seq_args;
1517 struct nfs_fh *osa_src_fh;
1521 struct nfs42_offload_status_res {
1522 struct nfs4_sequence_res osr_seq_res;
1527 struct nfs42_copy_notify_args {
1528 struct nfs4_sequence_args cna_seq_args;
1530 struct nfs_fh *cna_src_fh;
1532 struct nl4_server cna_dst;
1535 struct nfs42_copy_notify_res {
1536 struct nfs4_sequence_res cnr_seq_res;
1538 struct nfstime4 cnr_lease_time;
1540 struct nl4_server cnr_src;
1543 struct nfs42_seek_args {
1544 struct nfs4_sequence_args seq_args;
1546 struct nfs_fh *sa_fh;
1552 struct nfs42_seek_res {
1553 struct nfs4_sequence_res seq_res;
1560 struct nfs42_setxattrargs {
1561 struct nfs4_sequence_args seq_args;
1562 struct nfs_fh *fh;
1567 struct page **xattr_pages;
1570 struct nfs42_setxattrres {
1571 struct nfs4_sequence_res seq_res;
1572 struct nfs4_change_info cinfo;
1573 struct nfs_fattr *fattr;
1574 const struct nfs_server *server;
1577 struct nfs42_getxattrargs {
1578 struct nfs4_sequence_args seq_args;
1579 struct nfs_fh *fh;
1582 struct page **xattr_pages;
1585 struct nfs42_getxattrres {
1586 struct nfs4_sequence_res seq_res;
1590 struct nfs42_listxattrsargs {
1591 struct nfs4_sequence_args seq_args;
1592 struct nfs_fh *fh;
1595 struct page **xattr_pages;
1598 struct nfs42_listxattrsres {
1599 struct nfs4_sequence_res seq_res;
1600 struct page *scratch;
1608 struct nfs42_removexattrargs {
1609 struct nfs4_sequence_args seq_args;
1610 struct nfs_fh *fh;
1614 struct nfs42_removexattrres {
1615 struct nfs4_sequence_res seq_res;
1616 struct nfs4_change_info cinfo;
1621 struct nfs_page;
1625 struct nfs_page_array {
1626 struct page **pagevec;
1628 struct page *page_array[NFS_PAGEVEC_SIZE];
1642 struct nfs_io_completion;
1643 struct nfs_pgio_header {
1644 struct inode *inode;
1645 const struct cred *cred;
1646 struct list_head pages;
1647 struct nfs_page *req;
1648 struct nfs_writeverf verf; /* Used for writes */
1650 struct pnfs_layout_segment *lseg;
1652 const struct rpc_call_ops *mds_ops;
1653 void (*release) (struct nfs_pgio_header *hdr);
1654 const struct nfs_pgio_completion_ops *completion_ops;
1655 const struct nfs_rw_ops *rw_ops;
1656 struct nfs_io_completion *io_completion;
1657 struct nfs_direct_req *dreq;
1670 struct rpc_task task;
1671 struct nfs_fattr fattr;
1672 struct nfs_pgio_args args; /* argument struct */
1673 struct nfs_pgio_res res; /* result struct */
1675 int (*pgio_done_cb)(struct rpc_task *, struct nfs_pgio_header *);
1677 struct nfs_page_array page_array;
1678 struct nfs_client *ds_clp; /* pNFS data server */
1683 struct nfs_mds_commit_info {
1686 struct list_head list;
1689 struct nfs_commit_info;
1690 struct nfs_commit_data;
1691 struct nfs_inode;
1692 struct nfs_commit_completion_ops {
1693 void (*completion) (struct nfs_commit_data *data);
1694 void (*resched_write) (struct nfs_commit_info *, struct nfs_page *);
1697 struct nfs_commit_info {
1698 struct inode *inode; /* Needed for inode->i_lock */
1699 struct nfs_mds_commit_info *mds;
1700 struct pnfs_ds_commit_info *ds;
1701 struct nfs_direct_req *dreq; /* O_DIRECT request */
1702 const struct nfs_commit_completion_ops *completion_ops;
1705 struct nfs_commit_data {
1706 struct rpc_task task;
1707 struct inode *inode;
1708 const struct cred *cred;
1709 struct nfs_fattr fattr;
1710 struct nfs_writeverf verf;
1711 struct list_head pages; /* Coalesced requests we wish to flush */
1712 struct list_head list; /* lists of struct nfs_write_data */
1713 struct nfs_direct_req *dreq; /* O_DIRECT request */
1714 struct nfs_commitargs args; /* argument struct */
1715 struct nfs_commitres res; /* result struct */
1716 struct nfs_open_context *context;
1717 struct pnfs_layout_segment *lseg;
1718 struct nfs_client *ds_clp; /* pNFS data server */
1721 const struct rpc_call_ops *mds_ops;
1722 const struct nfs_commit_completion_ops *completion_ops;
1723 int (*commit_done_cb) (struct rpc_task *task, struct nfs_commit_data *data);
1727 struct nfs_pgio_completion_ops {
1728 void (*error_cleanup)(struct list_head *head, int);
1729 void (*init_hdr)(struct nfs_pgio_header *hdr);
1730 void (*completion)(struct nfs_pgio_header *hdr);
1731 void (*reschedule_io)(struct nfs_pgio_header *hdr);
1734 struct nfs_unlinkdata {
1735 struct nfs_removeargs args;
1736 struct nfs_removeres res;
1737 struct dentry *dentry;
1739 const struct cred *cred;
1740 struct nfs_fattr dir_attr;
1744 struct nfs_renamedata {
1745 struct nfs_renameargs args;
1746 struct nfs_renameres res;
1747 struct rpc_task task;
1748 const struct cred *cred;
1749 struct inode *old_dir;
1750 struct dentry *old_dentry;
1751 struct nfs_fattr old_fattr;
1752 struct inode *new_dir;
1753 struct dentry *new_dentry;
1754 struct nfs_fattr new_fattr;
1755 void (*complete)(struct rpc_task *, struct nfs_renamedata *);
1760 struct nfs_access_entry;
1761 struct nfs_client;
1762 struct rpc_timeout;
1763 struct nfs_subversion;
1764 struct nfs_mount_info;
1765 struct nfs_client_initdata;
1766 struct nfs_pageio_descriptor;
1767 struct fs_context;
1772 struct nfs_rpc_ops {
1774 const struct dentry_operations *dentry_ops;
1775 const struct inode_operations *dir_inode_ops;
1776 const struct inode_operations *file_inode_ops;
1777 const struct file_operations *file_ops;
1778 const struct nlmclnt_operations *nlmclnt_ops;
1780 int (*getroot) (struct nfs_server *, struct nfs_fh *,
1781 struct nfs_fsinfo *);
1782 int (*submount) (struct fs_context *, struct nfs_server *);
1783 int (*try_get_tree) (struct fs_context *);
1784 int (*getattr) (struct nfs_server *, struct nfs_fh *,
1785 struct nfs_fattr *, struct inode *);
1786 int (*setattr) (struct dentry *, struct nfs_fattr *,
1787 struct iattr *);
1788 int (*lookup) (struct inode *, struct dentry *,
1789 struct nfs_fh *, struct nfs_fattr *);
1790 int (*lookupp) (struct inode *, struct nfs_fh *,
1791 struct nfs_fattr *);
1792 int (*access) (struct inode *, struct nfs_access_entry *, const struct cred *);
1793 int (*readlink)(struct inode *, struct page *, unsigned int,
1795 int (*create) (struct inode *, struct dentry *,
1796 struct iattr *, int);
1797 int (*remove) (struct inode *, struct dentry *);
1798 void (*unlink_setup) (struct rpc_message *, struct dentry *, struct inode *);
1799 void (*unlink_rpc_prepare) (struct rpc_task *, struct nfs_unlinkdata *);
1800 int (*unlink_done) (struct rpc_task *, struct inode *);
1801 void (*rename_setup) (struct rpc_message *msg,
1802 struct dentry *old_dentry,
1803 struct dentry *new_dentry);
1804 void (*rename_rpc_prepare)(struct rpc_task *task, struct nfs_renamedata *);
1805 int (*rename_done) (struct rpc_task *task, struct inode *old_dir, struct inode *new_dir);
1806 int (*link) (struct inode *, struct inode *, const struct qstr *);
1807 int (*symlink) (struct inode *, struct dentry *, struct folio *,
1808 unsigned int, struct iattr *);
1809 int (*mkdir) (struct inode *, struct dentry *, struct iattr *);
1810 int (*rmdir) (struct inode *, const struct qstr *);
1811 int (*readdir) (struct nfs_readdir_arg *, struct nfs_readdir_res *);
1812 int (*mknod) (struct inode *, struct dentry *, struct iattr *,
1814 int (*statfs) (struct nfs_server *, struct nfs_fh *,
1815 struct nfs_fsstat *);
1816 int (*fsinfo) (struct nfs_server *, struct nfs_fh *,
1817 struct nfs_fsinfo *);
1818 int (*pathconf) (struct nfs_server *, struct nfs_fh *,
1819 struct nfs_pathconf *);
1820 int (*set_capabilities)(struct nfs_server *, struct nfs_fh *);
1821 int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, bool);
1822 int (*pgio_rpc_prepare)(struct rpc_task *,
1823 struct nfs_pgio_header *);
1824 void (*read_setup)(struct nfs_pgio_header *, struct rpc_message *);
1825 int (*read_done)(struct rpc_task *, struct nfs_pgio_header *);
1826 void (*write_setup)(struct nfs_pgio_header *, struct rpc_message *,
1827 struct rpc_clnt **);
1828 int (*write_done)(struct rpc_task *, struct nfs_pgio_header *);
1829 void (*commit_setup) (struct nfs_commit_data *, struct rpc_message *,
1830 struct rpc_clnt **);
1831 void (*commit_rpc_prepare)(struct rpc_task *, struct nfs_commit_data *);
1832 int (*commit_done) (struct rpc_task *, struct nfs_commit_data *);
1833 int (*lock)(struct file *, int, struct file_lock *);
1834 int (*lock_check_bounds)(const struct file_lock *);
1835 void (*clear_acl_cache)(struct inode *);
1836 void (*close_context)(struct nfs_open_context *ctx, int);
1837 struct inode * (*open_context) (struct inode *dir,
1838 struct nfs_open_context *ctx,
1840 struct iattr *iattr,
1842 int (*have_delegation)(struct inode *, fmode_t, int);
1843 int (*return_delegation)(struct inode *);
1844 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1845 struct nfs_client *(*init_client) (struct nfs_client *,
1846 const struct nfs_client_initdata *);
1847 void (*free_client) (struct nfs_client *);
1848 struct nfs_server *(*create_server)(struct fs_context *);
1849 struct nfs_server *(*clone_server)(struct nfs_server *, struct nfs_fh *,
1850 struct nfs_fattr *, rpc_authflavor_t);
1851 int (*discover_trunking)(struct nfs_server *, struct nfs_fh *);
1852 void (*enable_swap)(struct inode *inode);
1853 void (*disable_swap)(struct inode *inode);
1859 static inline void encode_opaque_fixed(struct xdr_stream *xdr, in encode_opaque_fixed()
1865 static inline int decode_opaque_fixed(struct xdr_stream *xdr, in decode_opaque_fixed()
1877 extern const struct nfs_rpc_ops nfs_v2_clientops;
1878 extern const struct nfs_rpc_ops nfs_v3_clientops;
1879 extern const struct nfs_rpc_ops nfs_v4_clientops;
1880 extern const struct rpc_version nfs_version2;
1881 extern const struct rpc_version nfs_version3;
1882 extern const struct rpc_version nfs_version4;
1884 extern const struct rpc_version nfsacl_version3;
1885 extern const struct rpc_program nfsacl_program;