Lines Matching full:args
31 struct cb_getattrargs *args = argp; in nfs4_callback_getattr() local
46 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr()
50 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, in nfs4_callback_getattr()
65 args->bitmap[0]; in nfs4_callback_getattr()
67 args->bitmap[1]; in nfs4_callback_getattr()
71 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); in nfs4_callback_getattr()
81 struct cb_recallargs *args = argp; in nfs4_callback_recall() local
93 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall()
97 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL, in nfs4_callback_recall()
98 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
102 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall()
112 trace_nfs4_cb_recall(cps->clp, &args->fh, inode, in nfs4_callback_recall()
113 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
245 struct cb_layoutrecallargs *args) in initiate_file_draining() argument
252 ino = nfs_layout_find_inode(clp, &args->cbl_fh, &args->cbl_stateid); in initiate_file_draining()
269 rv = pnfs_check_callback_stateid(lo, &args->cbl_stateid); in initiate_file_draining()
281 pnfs_set_layout_stateid(lo, &args->cbl_stateid, NULL, true); in initiate_file_draining()
283 &args->cbl_range, in initiate_file_draining()
284 be32_to_cpu(args->cbl_stateid.seqid))) { in initiate_file_draining()
297 &args->cbl_range); in initiate_file_draining()
309 trace_nfs4_cb_layoutrecall_file(clp, &args->cbl_fh, ino, in initiate_file_draining()
310 &args->cbl_stateid, -rv); in initiate_file_draining()
315 struct cb_layoutrecallargs *args) in initiate_bulk_draining() argument
319 if (args->cbl_recall_type == RETURN_FSID) in initiate_bulk_draining()
320 stat = pnfs_destroy_layouts_byfsid(clp, &args->cbl_fsid, true); in initiate_bulk_draining()
329 struct cb_layoutrecallargs *args) in do_callback_layoutrecall() argument
331 if (args->cbl_recall_type == RETURN_FILE) in do_callback_layoutrecall()
332 return initiate_file_draining(clp, args); in do_callback_layoutrecall()
333 return initiate_bulk_draining(clp, args); in do_callback_layoutrecall()
339 struct cb_layoutrecallargs *args = argp; in nfs4_callback_layoutrecall() local
343 res = do_callback_layoutrecall(cps->clp, args); in nfs4_callback_layoutrecall()
349 struct cb_layoutrecallargs args; in pnfs_recall_all_layouts() local
352 memset(&args, 0, sizeof(args)); in pnfs_recall_all_layouts()
353 args.cbl_recall_type = RETURN_ALL; in pnfs_recall_all_layouts()
355 do_callback_layoutrecall(clp, &args); in pnfs_recall_all_layouts()
361 struct cb_devicenotifyargs *args = argp; in nfs4_callback_devicenotify() local
371 for (i = 0; i < args->ndevs; i++) { in nfs4_callback_devicenotify()
372 struct cb_devicenotifyitem *dev = &args->devs[i]; in nfs4_callback_devicenotify()
384 kfree(args->devs); in nfs4_callback_devicenotify()
403 const struct cb_sequenceargs * args) in validate_seqid() argument
408 if (args->csa_slotid > tbl->server_highest_slotid) in validate_seqid()
412 if (args->csa_sequenceid == slot->seq_nr) { in validate_seqid()
419 if (args->csa_cachethis == 0) in validate_seqid()
430 if (args->csa_sequenceid != slot->seq_nr + 1) in validate_seqid()
436 trace_nfs4_cb_seqid_err(args, ret); in validate_seqid()
491 struct cb_sequenceargs *args = argp; in nfs4_callback_sequence() local
499 clp = nfs4_find_client_sessionid(cps->net, args->csa_addr, in nfs4_callback_sequence()
500 &args->csa_sessionid, cps->minorversion); in nfs4_callback_sequence()
510 memcpy(&res->csr_sessionid, &args->csa_sessionid, in nfs4_callback_sequence()
512 res->csr_sequenceid = args->csa_sequenceid; in nfs4_callback_sequence()
513 res->csr_slotid = args->csa_slotid; in nfs4_callback_sequence()
528 slot = nfs4_lookup_slot(tbl, args->csa_slotid); in nfs4_callback_sequence()
535 status = validate_seqid(tbl, slot, args); in nfs4_callback_sequence()
545 if (args->csa_cachethis != 0) { in nfs4_callback_sequence()
555 if (referring_call_exists(clp, args->csa_nrclists, args->csa_rclists, in nfs4_callback_sequence()
566 slot->seq_nr = args->csa_sequenceid; in nfs4_callback_sequence()
572 for (i = 0; i < args->csa_nrclists; i++) in nfs4_callback_sequence()
573 kfree(args->csa_rclists[i].rcl_refcalls); in nfs4_callback_sequence()
574 kfree(args->csa_rclists); in nfs4_callback_sequence()
582 trace_nfs4_cb_sequence(args, res, status); in nfs4_callback_sequence()
595 struct cb_recallanyargs *args = argp; in nfs4_callback_recallany() local
608 if (!validate_bitmap_values(args->craa_type_mask)) in nfs4_callback_recallany()
612 if (args->craa_type_mask & BIT(RCA4_TYPE_MASK_RDATA_DLG)) in nfs4_callback_recallany()
614 if (args->craa_type_mask & BIT(RCA4_TYPE_MASK_WDATA_DLG)) in nfs4_callback_recallany()
619 if (args->craa_type_mask & BIT(RCA4_TYPE_MASK_FILE_LAYOUT)) in nfs4_callback_recallany()
622 if (args->craa_type_mask & BIT(PNFS_FF_RCA4_TYPE_MASK_READ)) { in nfs4_callback_recallany()
626 if (args->craa_type_mask & BIT(PNFS_FF_RCA4_TYPE_MASK_RW)) { in nfs4_callback_recallany()
642 struct cb_recallslotargs *args = argp; in nfs4_callback_recallslot() local
652 args->crsa_target_highest_slotid); in nfs4_callback_recallslot()
658 nfs41_set_target_slotid(fc_tbl, args->crsa_target_highest_slotid); in nfs4_callback_recallslot()
668 struct cb_notify_lock_args *args = argp; in nfs4_callback_notify_lock() local
677 if (args->cbnl_valid) in nfs4_callback_notify_lock()
678 __wake_up(&cps->clp->cl_lock_waitq, TASK_NORMAL, 0, args); in nfs4_callback_notify_lock()
685 struct cb_offloadargs *args) in nfs4_copy_cb_args() argument
687 cp_state->count = args->wr_count; in nfs4_copy_cb_args()
688 cp_state->error = args->error; in nfs4_copy_cb_args()
689 if (!args->error) { in nfs4_copy_cb_args()
690 cp_state->verf.committed = args->wr_writeverf.committed; in nfs4_copy_cb_args()
692 &args->wr_writeverf.verifier.data[0], in nfs4_copy_cb_args()
700 struct cb_offloadargs *args = data; in nfs4_callback_offload() local
714 if (memcmp(args->coa_stateid.other, in nfs4_callback_offload()
716 sizeof(args->coa_stateid.other))) in nfs4_callback_offload()
718 nfs4_copy_cb_args(tmp_copy, args); in nfs4_callback_offload()
727 memcpy(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
728 nfs4_copy_cb_args(copy, args); in nfs4_callback_offload()
734 trace_nfs4_cb_offload(&args->coa_fh, &args->coa_stateid, in nfs4_callback_offload()
735 args->wr_count, args->error, in nfs4_callback_offload()
736 args->wr_writeverf.committed); in nfs4_callback_offload()