Lines Matching full:status

943 	int32_t		status;  member
3160 hdr->status = be32_to_cpup(p++); in decode_compound_hdr()
3170 return nfs4_stat_to_errno(hdr->status); in decode_compound_hdr()
3559 int status = 0; in decode_attr_files_avail() local
3572 return status; in decode_attr_files_avail()
3578 int status = 0; in decode_attr_files_free() local
3591 return status; in decode_attr_files_free()
3597 int status = 0; in decode_attr_files_total() local
3610 return status; in decode_attr_files_total()
3617 int status = 0; in decode_pathname() local
3632 status = decode_opaque_inline(xdr, &component->len, &component->data); in decode_pathname()
3633 if (unlikely(status != 0)) in decode_pathname()
3641 return status; in decode_pathname()
3650 dprintk(" status %d", status); in decode_pathname()
3651 status = -EIO; in decode_pathname()
3659 int status = -EIO; in decode_attr_fs_locations() local
3663 status = 0; in decode_attr_fs_locations()
3667 status = -EIO; in decode_attr_fs_locations()
3672 status = decode_pathname(xdr, &res->fs_path); in decode_attr_fs_locations()
3673 if (unlikely(status != 0)) in decode_attr_fs_locations()
3707 status = decode_opaque_inline(xdr, &len, &data); in decode_attr_fs_locations()
3708 if (unlikely(status != 0)) in decode_attr_fs_locations()
3714 status = decode_opaque_inline(xdr, &server->len, &server->data); in decode_attr_fs_locations()
3715 if (unlikely(status != 0)) in decode_attr_fs_locations()
3719 status = decode_pathname(xdr, &loc->rootpath); in decode_attr_fs_locations()
3720 if (unlikely(status != 0)) in decode_attr_fs_locations()
3724 status = NFS_ATTR_FATTR_V4_LOCATIONS; in decode_attr_fs_locations()
3726 dprintk("%s: fs_locations done, error = %d\n", __func__, status); in decode_attr_fs_locations()
3727 return status; in decode_attr_fs_locations()
3729 status = -EIO; in decode_attr_fs_locations()
3736 int status = 0; in decode_attr_maxfilesize() local
3749 return status; in decode_attr_maxfilesize()
3755 int status = 0; in decode_attr_maxlink() local
3768 return status; in decode_attr_maxlink()
3774 int status = 0; in decode_attr_maxname() local
3787 return status; in decode_attr_maxname()
3793 int status = 0; in decode_attr_maxread() local
3810 return status; in decode_attr_maxread()
3816 int status = 0; in decode_attr_maxwrite() local
3833 return status; in decode_attr_maxwrite()
3989 int status = 0; in decode_attr_space_avail() local
4002 return status; in decode_attr_space_avail()
4008 int status = 0; in decode_attr_space_free() local
4021 return status; in decode_attr_space_free()
4027 int status = 0; in decode_attr_space_total() local
4040 return status; in decode_attr_space_total()
4088 int status = 0; in decode_attr_time_access() local
4095 status = decode_attr_time(xdr, time); in decode_attr_time_access()
4096 if (status == 0) in decode_attr_time_access()
4097 status = NFS_ATTR_FATTR_ATIME; in decode_attr_time_access()
4101 return status; in decode_attr_time_access()
4106 int status = 0; in decode_attr_time_metadata() local
4113 status = decode_attr_time(xdr, time); in decode_attr_time_metadata()
4114 if (status == 0) in decode_attr_time_metadata()
4115 status = NFS_ATTR_FATTR_CTIME; in decode_attr_time_metadata()
4119 return status; in decode_attr_time_metadata()
4125 int status = 0; in decode_attr_time_delta() local
4132 status = decode_attr_time(xdr, time); in decode_attr_time_delta()
4137 return status; in decode_attr_time_delta()
4147 int status = 0; in decode_attr_security_label() local
4177 status = NFS_ATTR_FATTR_V4_SECURITY_LABEL; in decode_attr_security_label()
4187 return status; in decode_attr_security_label()
4192 int status = 0; in decode_attr_time_modify() local
4199 status = decode_attr_time(xdr, time); in decode_attr_time_modify()
4200 if (status == 0) in decode_attr_time_modify()
4201 status = NFS_ATTR_FATTR_MTIME; in decode_attr_time_modify()
4205 return status; in decode_attr_time_modify()
4262 int status; in decode_access() local
4264 status = decode_op_hdr(xdr, OP_ACCESS); in decode_access()
4265 if (status) in decode_access()
4266 return status; in decode_access()
4318 int status; in decode_close() local
4320 status = decode_op_hdr(xdr, OP_CLOSE); in decode_close()
4321 if (status != -EIO) in decode_close()
4322 nfs_increment_open_seqid(status, res->seqid); in decode_close()
4323 if (!status) in decode_close()
4324 status = decode_invalid_stateid(xdr, &res->stateid); in decode_close()
4325 return status; in decode_close()
4341 int status; in decode_commit() local
4343 status = decode_op_hdr(xdr, OP_COMMIT); in decode_commit()
4344 if (!status) in decode_commit()
4345 status = decode_write_verifier(xdr, &verf->verifier); in decode_commit()
4346 if (!status) in decode_commit()
4348 return status; in decode_commit()
4355 int status; in decode_create() local
4357 status = decode_op_hdr(xdr, OP_CREATE); in decode_create()
4358 if (status) in decode_create()
4359 return status; in decode_create()
4360 if ((status = decode_change_info(xdr, cinfo))) in decode_create()
4361 return status; in decode_create()
4376 int status; in decode_server_caps() local
4378 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_server_caps()
4380 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_server_caps()
4382 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_server_caps()
4384 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) in decode_server_caps()
4386 if ((status = decode_attr_fh_expire_type(xdr, bitmap, in decode_server_caps()
4389 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) in decode_server_caps()
4391 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) in decode_server_caps()
4393 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) in decode_server_caps()
4395 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, in decode_server_caps()
4398 status = verify_attr_len(xdr, savep, attrlen); in decode_server_caps()
4400 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_server_caps()
4401 return status; in decode_server_caps()
4408 int status; in decode_statfs() local
4410 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_statfs()
4412 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_statfs()
4414 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_statfs()
4417 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) in decode_statfs()
4419 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) in decode_statfs()
4421 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) in decode_statfs()
4424 status = -EIO; in decode_statfs()
4428 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) in decode_statfs()
4430 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) in decode_statfs()
4432 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) in decode_statfs()
4435 status = verify_attr_len(xdr, savep, attrlen); in decode_statfs()
4437 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_statfs()
4438 return status; in decode_statfs()
4445 int status; in decode_pathconf() local
4447 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_pathconf()
4449 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_pathconf()
4451 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_pathconf()
4454 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) in decode_pathconf()
4456 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) in decode_pathconf()
4459 status = verify_attr_len(xdr, savep, attrlen); in decode_pathconf()
4461 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_pathconf()
4462 return status; in decode_pathconf()
4488 int status; in decode_first_threshold_item4() local
4497 status = decode_attr_bitmap(xdr, bitmap); in decode_first_threshold_item4()
4498 if (status < 0) in decode_first_threshold_item4()
4502 status = decode_attr_length(xdr, &attrlen, &savep); in decode_first_threshold_item4()
4503 if (status < 0) in decode_first_threshold_item4()
4506 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); in decode_first_threshold_item4()
4507 if (status < 0) in decode_first_threshold_item4()
4509 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); in decode_first_threshold_item4()
4510 if (status < 0) in decode_first_threshold_item4()
4512 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, in decode_first_threshold_item4()
4514 if (status < 0) in decode_first_threshold_item4()
4516 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, in decode_first_threshold_item4()
4518 if (status < 0) in decode_first_threshold_item4()
4521 status = verify_attr_len(xdr, savep, attrlen); in decode_first_threshold_item4()
4528 dprintk("%s ret=%d!\n", __func__, status); in decode_first_threshold_item4()
4529 return status; in decode_first_threshold_item4()
4540 int status = 0; in decode_attr_mdsthreshold() local
4560 status = decode_first_threshold_item4(xdr, res); in decode_attr_mdsthreshold()
4563 return status; in decode_attr_mdsthreshold()
4571 int status; in decode_getfattr_attrs() local
4576 status = decode_attr_type(xdr, bitmap, &type); in decode_getfattr_attrs()
4577 if (status < 0) in decode_getfattr_attrs()
4580 if (status != 0) { in decode_getfattr_attrs()
4582 fattr->valid |= status; in decode_getfattr_attrs()
4585 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4586 if (status < 0) in decode_getfattr_attrs()
4588 fattr->valid |= status; in decode_getfattr_attrs()
4590 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4591 if (status < 0) in decode_getfattr_attrs()
4593 fattr->valid |= status; in decode_getfattr_attrs()
4595 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4596 if (status < 0) in decode_getfattr_attrs()
4598 fattr->valid |= status; in decode_getfattr_attrs()
4601 status = decode_attr_error(xdr, bitmap, &err); in decode_getfattr_attrs()
4602 if (status < 0) in decode_getfattr_attrs()
4605 status = decode_attr_filehandle(xdr, bitmap, fh); in decode_getfattr_attrs()
4606 if (status < 0) in decode_getfattr_attrs()
4609 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); in decode_getfattr_attrs()
4610 if (status < 0) in decode_getfattr_attrs()
4612 fattr->valid |= status; in decode_getfattr_attrs()
4614 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); in decode_getfattr_attrs()
4615 if (status < 0) in decode_getfattr_attrs()
4617 fattr->valid |= status; in decode_getfattr_attrs()
4619 status = -EIO; in decode_getfattr_attrs()
4623 status = decode_attr_mode(xdr, bitmap, &fmode); in decode_getfattr_attrs()
4624 if (status < 0) in decode_getfattr_attrs()
4626 if (status != 0) { in decode_getfattr_attrs()
4628 fattr->valid |= status; in decode_getfattr_attrs()
4631 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); in decode_getfattr_attrs()
4632 if (status < 0) in decode_getfattr_attrs()
4634 fattr->valid |= status; in decode_getfattr_attrs()
4636 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); in decode_getfattr_attrs()
4637 if (status < 0) in decode_getfattr_attrs()
4639 fattr->valid |= status; in decode_getfattr_attrs()
4641 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); in decode_getfattr_attrs()
4642 if (status < 0) in decode_getfattr_attrs()
4644 fattr->valid |= status; in decode_getfattr_attrs()
4646 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); in decode_getfattr_attrs()
4647 if (status < 0) in decode_getfattr_attrs()
4649 fattr->valid |= status; in decode_getfattr_attrs()
4651 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); in decode_getfattr_attrs()
4652 if (status < 0) in decode_getfattr_attrs()
4654 fattr->valid |= status; in decode_getfattr_attrs()
4656 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); in decode_getfattr_attrs()
4657 if (status < 0) in decode_getfattr_attrs()
4659 fattr->valid |= status; in decode_getfattr_attrs()
4661 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); in decode_getfattr_attrs()
4662 if (status < 0) in decode_getfattr_attrs()
4664 fattr->valid |= status; in decode_getfattr_attrs()
4666 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); in decode_getfattr_attrs()
4667 if (status < 0) in decode_getfattr_attrs()
4669 fattr->valid |= status; in decode_getfattr_attrs()
4671 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); in decode_getfattr_attrs()
4672 if (status < 0) in decode_getfattr_attrs()
4674 fattr->valid |= status; in decode_getfattr_attrs()
4676 status = -EIO; in decode_getfattr_attrs()
4680 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); in decode_getfattr_attrs()
4681 if (status < 0) in decode_getfattr_attrs()
4685 status = decode_attr_security_label(xdr, bitmap, label); in decode_getfattr_attrs()
4686 if (status < 0) in decode_getfattr_attrs()
4688 fattr->valid |= status; in decode_getfattr_attrs()
4692 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_attrs()
4693 return status; in decode_getfattr_attrs()
4703 int status; in decode_getfattr_generic() local
4705 status = decode_op_hdr(xdr, OP_GETATTR); in decode_getfattr_generic()
4706 if (status < 0) in decode_getfattr_generic()
4709 status = decode_attr_bitmap(xdr, bitmap); in decode_getfattr_generic()
4710 if (status < 0) in decode_getfattr_generic()
4713 status = decode_attr_length(xdr, &attrlen, &savep); in decode_getfattr_generic()
4714 if (status < 0) in decode_getfattr_generic()
4717 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, in decode_getfattr_generic()
4719 if (status < 0) in decode_getfattr_generic()
4722 status = verify_attr_len(xdr, savep, attrlen); in decode_getfattr_generic()
4724 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_generic()
4725 return status; in decode_getfattr_generic()
4782 int status = 0; in decode_attr_pnfstype() local
4788 status = decode_pnfs_layout_types(xdr, fsinfo); in decode_attr_pnfstype()
4791 return status; in decode_attr_pnfstype()
4838 int status; in decode_fsinfo() local
4840 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_fsinfo()
4842 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_fsinfo()
4844 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_fsinfo()
4849 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo()
4851 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo()
4853 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo()
4856 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo()
4860 status = -EIO; in decode_fsinfo()
4864 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo()
4865 if (status != 0) in decode_fsinfo()
4867 status = decode_attr_pnfstype(xdr, bitmap, fsinfo); in decode_fsinfo()
4868 if (status != 0) in decode_fsinfo()
4871 status = -EIO; in decode_fsinfo()
4875 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); in decode_fsinfo()
4876 if (status) in decode_fsinfo()
4878 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); in decode_fsinfo()
4879 if (status) in decode_fsinfo()
4882 status = decode_attr_xattrsupport(xdr, bitmap, in decode_fsinfo()
4884 if (status) in decode_fsinfo()
4887 status = verify_attr_len(xdr, savep, attrlen); in decode_fsinfo()
4889 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_fsinfo()
4890 return status; in decode_fsinfo()
4897 int status; in decode_getfh() local
4902 status = decode_op_hdr(xdr, OP_GETFH); in decode_getfh()
4903 if (status) in decode_getfh()
4904 return status; in decode_getfh()
4922 int status; in decode_link() local
4924 status = decode_op_hdr(xdr, OP_LINK); in decode_link()
4925 if (status) in decode_link()
4926 return status; in decode_link()
4965 int status; in decode_lock() local
4967 status = decode_op_hdr(xdr, OP_LOCK); in decode_lock()
4968 if (status == -EIO) in decode_lock()
4970 if (status == 0) { in decode_lock()
4971 status = decode_lock_stateid(xdr, &res->stateid); in decode_lock()
4972 if (unlikely(status)) in decode_lock()
4974 } else if (status == -NFS4ERR_DENIED) in decode_lock()
4975 status = decode_lock_denied(xdr, NULL); in decode_lock()
4977 nfs_increment_open_seqid(status, res->open_seqid); in decode_lock()
4978 nfs_increment_lock_seqid(status, res->lock_seqid); in decode_lock()
4980 return status; in decode_lock()
4985 int status; in decode_lockt() local
4986 status = decode_op_hdr(xdr, OP_LOCKT); in decode_lockt()
4987 if (status == -NFS4ERR_DENIED) in decode_lockt()
4989 return status; in decode_lockt()
4994 int status; in decode_locku() local
4996 status = decode_op_hdr(xdr, OP_LOCKU); in decode_locku()
4997 if (status != -EIO) in decode_locku()
4998 nfs_increment_lock_seqid(status, res->seqid); in decode_locku()
4999 if (status == 0) in decode_locku()
5000 status = decode_lock_stateid(xdr, &res->stateid); in decode_locku()
5001 return status; in decode_locku()
5050 int status; in decode_rw_delegation() local
5052 status = decode_delegation_stateid(xdr, &res->delegation); in decode_rw_delegation()
5053 if (unlikely(status)) in decode_rw_delegation()
5054 return status; in decode_rw_delegation()
5116 int status; in decode_open() local
5118 if (!__decode_op_hdr(xdr, OP_OPEN, &status)) in decode_open()
5119 return status; in decode_open()
5120 nfs_increment_open_seqid(status, res->seqid); in decode_open()
5121 if (status) in decode_open()
5122 return status; in decode_open()
5123 status = decode_open_stateid(xdr, &res->stateid); in decode_open()
5124 if (unlikely(status)) in decode_open()
5125 return status; in decode_open()
5154 int status; in decode_open_confirm() local
5156 status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); in decode_open_confirm()
5157 if (status != -EIO) in decode_open_confirm()
5158 nfs_increment_open_seqid(status, res->seqid); in decode_open_confirm()
5159 if (!status) in decode_open_confirm()
5160 status = decode_open_stateid(xdr, &res->stateid); in decode_open_confirm()
5161 return status; in decode_open_confirm()
5166 int status; in decode_open_downgrade() local
5168 status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); in decode_open_downgrade()
5169 if (status != -EIO) in decode_open_downgrade()
5170 nfs_increment_open_seqid(status, res->seqid); in decode_open_downgrade()
5171 if (!status) in decode_open_downgrade()
5172 status = decode_open_stateid(xdr, &res->stateid); in decode_open_downgrade()
5173 return status; in decode_open_downgrade()
5191 int status; in decode_read() local
5193 status = decode_op_hdr(xdr, OP_READ); in decode_read()
5194 if (status) in decode_read()
5195 return status; in decode_read()
5215 int status; in decode_readdir() local
5218 status = decode_op_hdr(xdr, OP_READDIR); in decode_readdir()
5219 if (!status) in decode_readdir()
5220 status = decode_verifier(xdr, readdir->verifier.data); in decode_readdir()
5221 if (unlikely(status)) in decode_readdir()
5222 return status; in decode_readdir()
5234 int status; in decode_readlink() local
5236 status = decode_op_hdr(xdr, OP_READLINK); in decode_readlink()
5237 if (status) in decode_readlink()
5238 return status; in decode_readlink()
5268 int status; in decode_remove() local
5270 status = decode_op_hdr(xdr, OP_REMOVE); in decode_remove()
5271 if (status) in decode_remove()
5273 status = decode_change_info(xdr, cinfo); in decode_remove()
5275 return status; in decode_remove()
5281 int status; in decode_rename() local
5283 status = decode_op_hdr(xdr, OP_RENAME); in decode_rename()
5284 if (status) in decode_rename()
5286 if ((status = decode_change_info(xdr, old_cinfo))) in decode_rename()
5288 status = decode_change_info(xdr, new_cinfo); in decode_rename()
5290 return status; in decode_rename()
5310 int status; in decode_getacl() local
5313 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_getacl()
5318 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_getacl()
5320 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_getacl()
5341 status = -EOPNOTSUPP; in decode_getacl()
5344 return status; in decode_getacl()
5355 int status; in decode_setattr() local
5357 status = decode_op_hdr(xdr, OP_SETATTR); in decode_setattr()
5358 if (status) in decode_setattr()
5359 return status; in decode_setattr()
5422 int status; in decode_write() local
5424 status = decode_op_hdr(xdr, OP_WRITE); in decode_write()
5425 if (status) in decode_write()
5426 return status; in decode_write()
5473 int status; in decode_secinfo_common() local
5494 status = decode_secinfo_gss(xdr, sec_flavor); in decode_secinfo_common()
5495 if (status) in decode_secinfo_common()
5501 status = 0; in decode_secinfo_common()
5503 return status; in decode_secinfo_common()
5508 int status = decode_op_hdr(xdr, OP_SECINFO); in decode_secinfo() local
5509 if (status) in decode_secinfo()
5510 return status; in decode_secinfo()
5517 int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); in decode_secinfo_no_name() local
5518 if (status) in decode_secinfo_no_name()
5519 return status; in decode_secinfo_no_name()
5548 int status; in decode_exchange_id() local
5551 status = decode_op_hdr(xdr, OP_EXCHANGE_ID); in decode_exchange_id()
5552 if (status) in decode_exchange_id()
5553 return status; in decode_exchange_id()
5570 status = decode_op_map(xdr, &res->state_protect.enforce); in decode_exchange_id()
5571 if (status) in decode_exchange_id()
5572 return status; in decode_exchange_id()
5573 status = decode_op_map(xdr, &res->state_protect.allow); in decode_exchange_id()
5574 if (status) in decode_exchange_id()
5575 return status; in decode_exchange_id()
5589 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5590 if (unlikely(status)) in decode_exchange_id()
5591 return status; in decode_exchange_id()
5596 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5597 if (unlikely(status)) in decode_exchange_id()
5598 return status; in decode_exchange_id()
5610 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5611 if (unlikely(status)) in decode_exchange_id()
5612 return status; in decode_exchange_id()
5616 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5617 if (unlikely(status)) in decode_exchange_id()
5618 return status; in decode_exchange_id()
5673 int status; in decode_bind_conn_to_session() local
5675 status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); in decode_bind_conn_to_session()
5676 if (!status) in decode_bind_conn_to_session()
5677 status = decode_sessionid(xdr, &res->sessionid); in decode_bind_conn_to_session()
5678 if (unlikely(status)) in decode_bind_conn_to_session()
5679 return status; in decode_bind_conn_to_session()
5701 int status; in decode_create_session() local
5703 status = decode_op_hdr(xdr, OP_CREATE_SESSION); in decode_create_session()
5704 if (!status) in decode_create_session()
5705 status = decode_sessionid(xdr, &res->sessionid); in decode_create_session()
5706 if (unlikely(status)) in decode_create_session()
5707 return status; in decode_create_session()
5717 status = decode_chan_attrs(xdr, &res->fc_attrs); in decode_create_session()
5718 if (!status) in decode_create_session()
5719 status = decode_chan_attrs(xdr, &res->bc_attrs); in decode_create_session()
5720 return status; in decode_create_session()
5747 int status; in decode_sequence() local
5755 status = decode_op_hdr(xdr, OP_SEQUENCE); in decode_sequence()
5756 if (!status) in decode_sequence()
5757 status = decode_sessionid(xdr, &id); in decode_sequence()
5758 if (unlikely(status)) in decode_sequence()
5765 status = -EREMOTEIO; in decode_sequence()
5796 status = 0; in decode_sequence()
5798 res->sr_status = status; in decode_sequence()
5799 return status; in decode_sequence()
5801 status = -EIO; in decode_sequence()
5821 int status; in decode_getdeviceinfo() local
5823 status = decode_op_hdr(xdr, OP_GETDEVICEINFO); in decode_getdeviceinfo()
5824 if (status) { in decode_getdeviceinfo()
5825 if (status == -ETOOSMALL) { in decode_getdeviceinfo()
5833 return status; in decode_getdeviceinfo()
5882 int status; in decode_layoutget() local
5886 status = decode_op_hdr(xdr, OP_LAYOUTGET); in decode_layoutget()
5887 if (status) in decode_layoutget()
5901 status = -EINVAL; in decode_layoutget()
5927 status = -EINVAL; in decode_layoutget()
5942 res->status = status; in decode_layoutget()
5943 return status; in decode_layoutget()
5945 status = -EIO; in decode_layoutget()
5953 int status; in decode_layoutreturn() local
5955 status = decode_op_hdr(xdr, OP_LAYOUTRETURN); in decode_layoutreturn()
5956 if (status) in decode_layoutreturn()
5957 return status; in decode_layoutreturn()
5963 status = decode_layout_stateid(xdr, &res->stateid); in decode_layoutreturn()
5966 return status; in decode_layoutreturn()
5975 int status; in decode_layoutcommit() local
5977 status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); in decode_layoutcommit()
5978 res->status = status; in decode_layoutcommit()
5979 if (status) in decode_layoutcommit()
5980 return status; in decode_layoutcommit()
6000 int status; in decode_test_stateid() local
6003 status = decode_op_hdr(xdr, OP_TEST_STATEID); in decode_test_stateid()
6004 if (status) in decode_test_stateid()
6005 return status; in decode_test_stateid()
6017 res->status = be32_to_cpup(p++); in decode_test_stateid()
6019 return status; in decode_test_stateid()
6025 res->status = decode_op_hdr(xdr, OP_FREE_STATEID); in decode_free_stateid()
6026 return res->status; in decode_free_stateid()
6057 int status; in nfs4_xdr_dec_open_downgrade() local
6059 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_downgrade()
6060 if (status) in nfs4_xdr_dec_open_downgrade()
6062 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6063 if (status) in nfs4_xdr_dec_open_downgrade()
6065 status = decode_putfh(xdr); in nfs4_xdr_dec_open_downgrade()
6066 if (status) in nfs4_xdr_dec_open_downgrade()
6069 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_open_downgrade()
6070 res->lr_ret = status; in nfs4_xdr_dec_open_downgrade()
6071 if (status) in nfs4_xdr_dec_open_downgrade()
6074 status = decode_open_downgrade(xdr, res); in nfs4_xdr_dec_open_downgrade()
6076 return status; in nfs4_xdr_dec_open_downgrade()
6087 int status; in nfs4_xdr_dec_access() local
6089 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_access()
6090 if (status) in nfs4_xdr_dec_access()
6092 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6093 if (status) in nfs4_xdr_dec_access()
6095 status = decode_putfh(xdr); in nfs4_xdr_dec_access()
6096 if (status != 0) in nfs4_xdr_dec_access()
6098 status = decode_access(xdr, &res->supported, &res->access); in nfs4_xdr_dec_access()
6099 if (status != 0) in nfs4_xdr_dec_access()
6104 return status; in nfs4_xdr_dec_access()
6115 int status; in nfs4_xdr_dec_lookup() local
6117 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup()
6118 if (status) in nfs4_xdr_dec_lookup()
6120 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6121 if (status) in nfs4_xdr_dec_lookup()
6123 status = decode_putfh(xdr); in nfs4_xdr_dec_lookup()
6124 if (status) in nfs4_xdr_dec_lookup()
6126 status = decode_lookup(xdr); in nfs4_xdr_dec_lookup()
6127 if (status) in nfs4_xdr_dec_lookup()
6129 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup()
6130 if (status) in nfs4_xdr_dec_lookup()
6132 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_lookup()
6134 return status; in nfs4_xdr_dec_lookup()
6145 int status; in nfs4_xdr_dec_lookupp() local
6147 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookupp()
6148 if (status) in nfs4_xdr_dec_lookupp()
6150 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookupp()
6151 if (status) in nfs4_xdr_dec_lookupp()
6153 status = decode_putfh(xdr); in nfs4_xdr_dec_lookupp()
6154 if (status) in nfs4_xdr_dec_lookupp()
6156 status = decode_lookupp(xdr); in nfs4_xdr_dec_lookupp()
6157 if (status) in nfs4_xdr_dec_lookupp()
6159 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookupp()
6160 if (status) in nfs4_xdr_dec_lookupp()
6162 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_lookupp()
6164 return status; in nfs4_xdr_dec_lookupp()
6176 int status; in nfs4_xdr_dec_lookup_root() local
6178 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup_root()
6179 if (status) in nfs4_xdr_dec_lookup_root()
6181 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6182 if (status) in nfs4_xdr_dec_lookup_root()
6184 status = decode_putrootfh(xdr); in nfs4_xdr_dec_lookup_root()
6185 if (status) in nfs4_xdr_dec_lookup_root()
6187 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup_root()
6188 if (status == 0) in nfs4_xdr_dec_lookup_root()
6189 status = decode_getfattr_label(xdr, res->fattr, in nfs4_xdr_dec_lookup_root()
6192 return status; in nfs4_xdr_dec_lookup_root()
6203 int status; in nfs4_xdr_dec_remove() local
6205 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_remove()
6206 if (status) in nfs4_xdr_dec_remove()
6208 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_remove()
6209 if (status) in nfs4_xdr_dec_remove()
6211 status = decode_putfh(xdr); in nfs4_xdr_dec_remove()
6212 if (status) in nfs4_xdr_dec_remove()
6214 status = decode_remove(xdr, &res->cinfo); in nfs4_xdr_dec_remove()
6216 return status; in nfs4_xdr_dec_remove()
6227 int status; in nfs4_xdr_dec_rename() local
6229 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_rename()
6230 if (status) in nfs4_xdr_dec_rename()
6232 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_rename()
6233 if (status) in nfs4_xdr_dec_rename()
6235 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6236 if (status) in nfs4_xdr_dec_rename()
6238 status = decode_savefh(xdr); in nfs4_xdr_dec_rename()
6239 if (status) in nfs4_xdr_dec_rename()
6241 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6242 if (status) in nfs4_xdr_dec_rename()
6244 status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); in nfs4_xdr_dec_rename()
6246 return status; in nfs4_xdr_dec_rename()
6257 int status; in nfs4_xdr_dec_link() local
6259 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_link()
6260 if (status) in nfs4_xdr_dec_link()
6262 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_link()
6263 if (status) in nfs4_xdr_dec_link()
6265 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6266 if (status) in nfs4_xdr_dec_link()
6268 status = decode_savefh(xdr); in nfs4_xdr_dec_link()
6269 if (status) in nfs4_xdr_dec_link()
6271 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6272 if (status) in nfs4_xdr_dec_link()
6274 status = decode_link(xdr, &res->cinfo); in nfs4_xdr_dec_link()
6275 if (status) in nfs4_xdr_dec_link()
6281 status = decode_restorefh(xdr); in nfs4_xdr_dec_link()
6282 if (status) in nfs4_xdr_dec_link()
6286 return status; in nfs4_xdr_dec_link()
6297 int status; in nfs4_xdr_dec_create() local
6299 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create()
6300 if (status) in nfs4_xdr_dec_create()
6302 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_create()
6303 if (status) in nfs4_xdr_dec_create()
6305 status = decode_putfh(xdr); in nfs4_xdr_dec_create()
6306 if (status) in nfs4_xdr_dec_create()
6308 status = decode_create(xdr, &res->dir_cinfo); in nfs4_xdr_dec_create()
6309 if (status) in nfs4_xdr_dec_create()
6311 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_create()
6312 if (status) in nfs4_xdr_dec_create()
6316 return status; in nfs4_xdr_dec_create()
6336 int status; in nfs4_xdr_dec_getattr() local
6338 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getattr()
6339 if (status) in nfs4_xdr_dec_getattr()
6341 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getattr()
6342 if (status) in nfs4_xdr_dec_getattr()
6344 status = decode_putfh(xdr); in nfs4_xdr_dec_getattr()
6345 if (status) in nfs4_xdr_dec_getattr()
6347 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_getattr()
6349 return status; in nfs4_xdr_dec_getattr()
6379 int status; in nfs4_xdr_dec_setacl() local
6381 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setacl()
6382 if (status) in nfs4_xdr_dec_setacl()
6384 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setacl()
6385 if (status) in nfs4_xdr_dec_setacl()
6387 status = decode_putfh(xdr); in nfs4_xdr_dec_setacl()
6388 if (status) in nfs4_xdr_dec_setacl()
6390 status = decode_setattr(xdr); in nfs4_xdr_dec_setacl()
6392 return status; in nfs4_xdr_dec_setacl()
6404 int status; in nfs4_xdr_dec_getacl() local
6410 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getacl()
6411 if (status) in nfs4_xdr_dec_getacl()
6413 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getacl()
6414 if (status) in nfs4_xdr_dec_getacl()
6416 status = decode_putfh(xdr); in nfs4_xdr_dec_getacl()
6417 if (status) in nfs4_xdr_dec_getacl()
6419 status = decode_getacl(xdr, rqstp, res); in nfs4_xdr_dec_getacl()
6422 return status; in nfs4_xdr_dec_getacl()
6433 int status; in nfs4_xdr_dec_close() local
6435 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_close()
6436 if (status) in nfs4_xdr_dec_close()
6438 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_close()
6439 if (status) in nfs4_xdr_dec_close()
6441 status = decode_putfh(xdr); in nfs4_xdr_dec_close()
6442 if (status) in nfs4_xdr_dec_close()
6445 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_close()
6446 res->lr_ret = status; in nfs4_xdr_dec_close()
6447 if (status) in nfs4_xdr_dec_close()
6451 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_close()
6452 if (status != 0) in nfs4_xdr_dec_close()
6455 status = decode_close(xdr, res); in nfs4_xdr_dec_close()
6457 return status; in nfs4_xdr_dec_close()
6468 int status; in nfs4_xdr_dec_open() local
6470 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open()
6471 if (status) in nfs4_xdr_dec_open()
6473 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open()
6474 if (status) in nfs4_xdr_dec_open()
6476 status = decode_putfh(xdr); in nfs4_xdr_dec_open()
6477 if (status) in nfs4_xdr_dec_open()
6479 status = decode_open(xdr, res); in nfs4_xdr_dec_open()
6480 if (status) in nfs4_xdr_dec_open()
6482 status = decode_getfh(xdr, &res->fh); in nfs4_xdr_dec_open()
6483 if (status) in nfs4_xdr_dec_open()
6491 return status; in nfs4_xdr_dec_open()
6503 int status; in nfs4_xdr_dec_open_confirm() local
6505 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_confirm()
6506 if (status) in nfs4_xdr_dec_open_confirm()
6508 status = decode_putfh(xdr); in nfs4_xdr_dec_open_confirm()
6509 if (status) in nfs4_xdr_dec_open_confirm()
6511 status = decode_open_confirm(xdr, res); in nfs4_xdr_dec_open_confirm()
6513 return status; in nfs4_xdr_dec_open_confirm()
6525 int status; in nfs4_xdr_dec_open_noattr() local
6527 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_noattr()
6528 if (status) in nfs4_xdr_dec_open_noattr()
6530 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_noattr()
6531 if (status) in nfs4_xdr_dec_open_noattr()
6533 status = decode_putfh(xdr); in nfs4_xdr_dec_open_noattr()
6534 if (status) in nfs4_xdr_dec_open_noattr()
6536 status = decode_open(xdr, res); in nfs4_xdr_dec_open_noattr()
6537 if (status) in nfs4_xdr_dec_open_noattr()
6545 return status; in nfs4_xdr_dec_open_noattr()
6557 int status; in nfs4_xdr_dec_setattr() local
6559 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setattr()
6560 if (status) in nfs4_xdr_dec_setattr()
6562 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setattr()
6563 if (status) in nfs4_xdr_dec_setattr()
6565 status = decode_putfh(xdr); in nfs4_xdr_dec_setattr()
6566 if (status) in nfs4_xdr_dec_setattr()
6568 status = decode_setattr(xdr); in nfs4_xdr_dec_setattr()
6569 if (status) in nfs4_xdr_dec_setattr()
6573 return status; in nfs4_xdr_dec_setattr()
6584 int status; in nfs4_xdr_dec_lock() local
6586 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lock()
6587 if (status) in nfs4_xdr_dec_lock()
6589 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lock()
6590 if (status) in nfs4_xdr_dec_lock()
6592 status = decode_putfh(xdr); in nfs4_xdr_dec_lock()
6593 if (status) in nfs4_xdr_dec_lock()
6595 status = decode_lock(xdr, res); in nfs4_xdr_dec_lock()
6597 return status; in nfs4_xdr_dec_lock()
6608 int status; in nfs4_xdr_dec_lockt() local
6610 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lockt()
6611 if (status) in nfs4_xdr_dec_lockt()
6613 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lockt()
6614 if (status) in nfs4_xdr_dec_lockt()
6616 status = decode_putfh(xdr); in nfs4_xdr_dec_lockt()
6617 if (status) in nfs4_xdr_dec_lockt()
6619 status = decode_lockt(xdr, res); in nfs4_xdr_dec_lockt()
6621 return status; in nfs4_xdr_dec_lockt()
6632 int status; in nfs4_xdr_dec_locku() local
6634 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_locku()
6635 if (status) in nfs4_xdr_dec_locku()
6637 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_locku()
6638 if (status) in nfs4_xdr_dec_locku()
6640 status = decode_putfh(xdr); in nfs4_xdr_dec_locku()
6641 if (status) in nfs4_xdr_dec_locku()
6643 status = decode_locku(xdr, res); in nfs4_xdr_dec_locku()
6645 return status; in nfs4_xdr_dec_locku()
6652 int status; in nfs4_xdr_dec_release_lockowner() local
6654 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_release_lockowner()
6655 if (!status) in nfs4_xdr_dec_release_lockowner()
6656 status = decode_release_lockowner(xdr); in nfs4_xdr_dec_release_lockowner()
6657 return status; in nfs4_xdr_dec_release_lockowner()
6669 int status; in nfs4_xdr_dec_readlink() local
6671 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readlink()
6672 if (status) in nfs4_xdr_dec_readlink()
6674 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readlink()
6675 if (status) in nfs4_xdr_dec_readlink()
6677 status = decode_putfh(xdr); in nfs4_xdr_dec_readlink()
6678 if (status) in nfs4_xdr_dec_readlink()
6680 status = decode_readlink(xdr, rqstp); in nfs4_xdr_dec_readlink()
6682 return status; in nfs4_xdr_dec_readlink()
6693 int status; in nfs4_xdr_dec_readdir() local
6695 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readdir()
6696 if (status) in nfs4_xdr_dec_readdir()
6698 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readdir()
6699 if (status) in nfs4_xdr_dec_readdir()
6701 status = decode_putfh(xdr); in nfs4_xdr_dec_readdir()
6702 if (status) in nfs4_xdr_dec_readdir()
6704 status = decode_readdir(xdr, rqstp, res); in nfs4_xdr_dec_readdir()
6706 return status; in nfs4_xdr_dec_readdir()
6717 int status; in nfs4_xdr_dec_read() local
6719 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read()
6720 res->op_status = hdr.status; in nfs4_xdr_dec_read()
6721 if (status) in nfs4_xdr_dec_read()
6723 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read()
6724 if (status) in nfs4_xdr_dec_read()
6726 status = decode_putfh(xdr); in nfs4_xdr_dec_read()
6727 if (status) in nfs4_xdr_dec_read()
6729 status = decode_read(xdr, rqstp, res); in nfs4_xdr_dec_read()
6730 if (!status) in nfs4_xdr_dec_read()
6731 status = res->count; in nfs4_xdr_dec_read()
6733 return status; in nfs4_xdr_dec_read()
6744 int status; in nfs4_xdr_dec_write() local
6746 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_write()
6747 res->op_status = hdr.status; in nfs4_xdr_dec_write()
6748 if (status) in nfs4_xdr_dec_write()
6750 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_write()
6751 if (status) in nfs4_xdr_dec_write()
6753 status = decode_putfh(xdr); in nfs4_xdr_dec_write()
6754 if (status) in nfs4_xdr_dec_write()
6756 status = decode_write(xdr, res); in nfs4_xdr_dec_write()
6757 if (status) in nfs4_xdr_dec_write()
6761 if (!status) in nfs4_xdr_dec_write()
6762 status = res->count; in nfs4_xdr_dec_write()
6764 return status; in nfs4_xdr_dec_write()
6775 int status; in nfs4_xdr_dec_commit() local
6777 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_commit()
6778 res->op_status = hdr.status; in nfs4_xdr_dec_commit()
6779 if (status) in nfs4_xdr_dec_commit()
6781 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_commit()
6782 if (status) in nfs4_xdr_dec_commit()
6784 status = decode_putfh(xdr); in nfs4_xdr_dec_commit()
6785 if (status) in nfs4_xdr_dec_commit()
6787 status = decode_commit(xdr, res); in nfs4_xdr_dec_commit()
6789 return status; in nfs4_xdr_dec_commit()
6800 int status; in nfs4_xdr_dec_fsinfo() local
6802 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsinfo()
6803 if (!status) in nfs4_xdr_dec_fsinfo()
6804 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fsinfo()
6805 if (!status) in nfs4_xdr_dec_fsinfo()
6806 status = decode_putfh(xdr); in nfs4_xdr_dec_fsinfo()
6807 if (!status) in nfs4_xdr_dec_fsinfo()
6808 status = decode_fsinfo(xdr, res->fsinfo); in nfs4_xdr_dec_fsinfo()
6809 return status; in nfs4_xdr_dec_fsinfo()
6820 int status; in nfs4_xdr_dec_pathconf() local
6822 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_pathconf()
6823 if (!status) in nfs4_xdr_dec_pathconf()
6824 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_pathconf()
6825 if (!status) in nfs4_xdr_dec_pathconf()
6826 status = decode_putfh(xdr); in nfs4_xdr_dec_pathconf()
6827 if (!status) in nfs4_xdr_dec_pathconf()
6828 status = decode_pathconf(xdr, res->pathconf); in nfs4_xdr_dec_pathconf()
6829 return status; in nfs4_xdr_dec_pathconf()
6840 int status; in nfs4_xdr_dec_statfs() local
6842 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_statfs()
6843 if (!status) in nfs4_xdr_dec_statfs()
6844 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_statfs()
6845 if (!status) in nfs4_xdr_dec_statfs()
6846 status = decode_putfh(xdr); in nfs4_xdr_dec_statfs()
6847 if (!status) in nfs4_xdr_dec_statfs()
6848 status = decode_statfs(xdr, res->fsstat); in nfs4_xdr_dec_statfs()
6849 return status; in nfs4_xdr_dec_statfs()
6861 int status; in nfs4_xdr_dec_server_caps() local
6863 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_server_caps()
6864 if (status) in nfs4_xdr_dec_server_caps()
6866 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_server_caps()
6867 if (status) in nfs4_xdr_dec_server_caps()
6869 status = decode_putfh(xdr); in nfs4_xdr_dec_server_caps()
6870 if (status) in nfs4_xdr_dec_server_caps()
6872 status = decode_server_caps(xdr, res); in nfs4_xdr_dec_server_caps()
6874 return status; in nfs4_xdr_dec_server_caps()
6884 int status; in nfs4_xdr_dec_renew() local
6886 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_renew()
6887 if (!status) in nfs4_xdr_dec_renew()
6888 status = decode_renew(xdr); in nfs4_xdr_dec_renew()
6889 return status; in nfs4_xdr_dec_renew()
6901 int status; in nfs4_xdr_dec_setclientid() local
6903 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid()
6904 if (!status) in nfs4_xdr_dec_setclientid()
6905 status = decode_setclientid(xdr, res); in nfs4_xdr_dec_setclientid()
6906 return status; in nfs4_xdr_dec_setclientid()
6917 int status; in nfs4_xdr_dec_setclientid_confirm() local
6919 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid_confirm()
6920 if (!status) in nfs4_xdr_dec_setclientid_confirm()
6921 status = decode_setclientid_confirm(xdr); in nfs4_xdr_dec_setclientid_confirm()
6922 return status; in nfs4_xdr_dec_setclientid_confirm()
6934 int status; in nfs4_xdr_dec_delegreturn() local
6936 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_delegreturn()
6937 if (status) in nfs4_xdr_dec_delegreturn()
6939 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_delegreturn()
6940 if (status) in nfs4_xdr_dec_delegreturn()
6942 status = decode_putfh(xdr); in nfs4_xdr_dec_delegreturn()
6943 if (status != 0) in nfs4_xdr_dec_delegreturn()
6946 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_delegreturn()
6947 res->lr_ret = status; in nfs4_xdr_dec_delegreturn()
6948 if (status) in nfs4_xdr_dec_delegreturn()
6952 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_delegreturn()
6953 if (status != 0) in nfs4_xdr_dec_delegreturn()
6956 status = decode_delegreturn(xdr); in nfs4_xdr_dec_delegreturn()
6958 return status; in nfs4_xdr_dec_delegreturn()
6970 int status; in nfs4_xdr_dec_fs_locations() local
6972 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fs_locations()
6973 if (status) in nfs4_xdr_dec_fs_locations()
6975 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fs_locations()
6976 if (status) in nfs4_xdr_dec_fs_locations()
6978 status = decode_putfh(xdr); in nfs4_xdr_dec_fs_locations()
6979 if (status) in nfs4_xdr_dec_fs_locations()
6983 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
6987 if (status) in nfs4_xdr_dec_fs_locations()
6990 status = decode_renew(xdr); in nfs4_xdr_dec_fs_locations()
6992 status = decode_lookup(xdr); in nfs4_xdr_dec_fs_locations()
6993 if (status) in nfs4_xdr_dec_fs_locations()
6996 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
7002 return status; in nfs4_xdr_dec_fs_locations()
7014 int status; in nfs4_xdr_dec_secinfo() local
7016 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo()
7017 if (status) in nfs4_xdr_dec_secinfo()
7019 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo()
7020 if (status) in nfs4_xdr_dec_secinfo()
7022 status = decode_putfh(xdr); in nfs4_xdr_dec_secinfo()
7023 if (status) in nfs4_xdr_dec_secinfo()
7025 status = decode_secinfo(xdr, res); in nfs4_xdr_dec_secinfo()
7027 return status; in nfs4_xdr_dec_secinfo()
7039 int status; in nfs4_xdr_dec_fsid_present() local
7041 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsid_present()
7042 if (status) in nfs4_xdr_dec_fsid_present()
7044 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_fsid_present()
7045 if (status) in nfs4_xdr_dec_fsid_present()
7047 status = decode_putfh(xdr); in nfs4_xdr_dec_fsid_present()
7048 if (status) in nfs4_xdr_dec_fsid_present()
7050 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_fsid_present()
7051 if (status) in nfs4_xdr_dec_fsid_present()
7054 status = decode_renew(xdr); in nfs4_xdr_dec_fsid_present()
7056 return status; in nfs4_xdr_dec_fsid_present()
7068 int status; in nfs4_xdr_dec_bind_conn_to_session() local
7070 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_bind_conn_to_session()
7071 if (!status) in nfs4_xdr_dec_bind_conn_to_session()
7072 status = decode_bind_conn_to_session(xdr, res); in nfs4_xdr_dec_bind_conn_to_session()
7073 return status; in nfs4_xdr_dec_bind_conn_to_session()
7084 int status; in nfs4_xdr_dec_exchange_id() local
7086 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_exchange_id()
7087 if (!status) in nfs4_xdr_dec_exchange_id()
7088 status = decode_exchange_id(xdr, res); in nfs4_xdr_dec_exchange_id()
7089 return status; in nfs4_xdr_dec_exchange_id()
7100 int status; in nfs4_xdr_dec_create_session() local
7102 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create_session()
7103 if (!status) in nfs4_xdr_dec_create_session()
7104 status = decode_create_session(xdr, res); in nfs4_xdr_dec_create_session()
7105 return status; in nfs4_xdr_dec_create_session()
7116 int status; in nfs4_xdr_dec_destroy_session() local
7118 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_session()
7119 if (!status) in nfs4_xdr_dec_destroy_session()
7120 status = decode_destroy_session(xdr, res); in nfs4_xdr_dec_destroy_session()
7121 return status; in nfs4_xdr_dec_destroy_session()
7132 int status; in nfs4_xdr_dec_destroy_clientid() local
7134 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_clientid()
7135 if (!status) in nfs4_xdr_dec_destroy_clientid()
7136 status = decode_destroy_clientid(xdr, res); in nfs4_xdr_dec_destroy_clientid()
7137 return status; in nfs4_xdr_dec_destroy_clientid()
7148 int status; in nfs4_xdr_dec_sequence() local
7150 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_sequence()
7151 if (!status) in nfs4_xdr_dec_sequence()
7152 status = decode_sequence(xdr, res, rqstp); in nfs4_xdr_dec_sequence()
7153 return status; in nfs4_xdr_dec_sequence()
7167 int status; in nfs4_xdr_dec_get_lease_time() local
7169 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_get_lease_time()
7170 if (!status) in nfs4_xdr_dec_get_lease_time()
7171 status = decode_sequence(xdr, &res->lr_seq_res, rqstp); in nfs4_xdr_dec_get_lease_time()
7172 if (!status) in nfs4_xdr_dec_get_lease_time()
7173 status = decode_putrootfh(xdr); in nfs4_xdr_dec_get_lease_time()
7174 if (!status) in nfs4_xdr_dec_get_lease_time()
7175 status = decode_fsinfo(xdr, res->lr_fsinfo); in nfs4_xdr_dec_get_lease_time()
7176 return status; in nfs4_xdr_dec_get_lease_time()
7190 int status; in nfs4_xdr_dec_reclaim_complete() local
7192 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_reclaim_complete()
7193 if (!status) in nfs4_xdr_dec_reclaim_complete()
7194 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_reclaim_complete()
7195 if (!status) in nfs4_xdr_dec_reclaim_complete()
7196 status = decode_reclaim_complete(xdr, NULL); in nfs4_xdr_dec_reclaim_complete()
7197 return status; in nfs4_xdr_dec_reclaim_complete()
7209 int status; in nfs4_xdr_dec_getdeviceinfo() local
7211 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getdeviceinfo()
7212 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7214 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getdeviceinfo()
7215 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7217 status = decode_getdeviceinfo(xdr, res); in nfs4_xdr_dec_getdeviceinfo()
7219 return status; in nfs4_xdr_dec_getdeviceinfo()
7231 int status; in nfs4_xdr_dec_layoutget() local
7233 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutget()
7234 if (status) in nfs4_xdr_dec_layoutget()
7236 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutget()
7237 if (status) in nfs4_xdr_dec_layoutget()
7239 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutget()
7240 if (status) in nfs4_xdr_dec_layoutget()
7242 status = decode_layoutget(xdr, rqstp, res); in nfs4_xdr_dec_layoutget()
7244 return status; in nfs4_xdr_dec_layoutget()
7256 int status; in nfs4_xdr_dec_layoutreturn() local
7258 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutreturn()
7259 if (status) in nfs4_xdr_dec_layoutreturn()
7261 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutreturn()
7262 if (status) in nfs4_xdr_dec_layoutreturn()
7264 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutreturn()
7265 if (status) in nfs4_xdr_dec_layoutreturn()
7267 status = decode_layoutreturn(xdr, res); in nfs4_xdr_dec_layoutreturn()
7269 return status; in nfs4_xdr_dec_layoutreturn()
7281 int status; in nfs4_xdr_dec_layoutcommit() local
7283 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutcommit()
7284 if (status) in nfs4_xdr_dec_layoutcommit()
7286 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutcommit()
7287 if (status) in nfs4_xdr_dec_layoutcommit()
7289 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutcommit()
7290 if (status) in nfs4_xdr_dec_layoutcommit()
7292 status = decode_layoutcommit(xdr, rqstp, res); in nfs4_xdr_dec_layoutcommit()
7293 if (status) in nfs4_xdr_dec_layoutcommit()
7297 return status; in nfs4_xdr_dec_layoutcommit()
7309 int status; in nfs4_xdr_dec_secinfo_no_name() local
7311 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo_no_name()
7312 if (status) in nfs4_xdr_dec_secinfo_no_name()
7314 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo_no_name()
7315 if (status) in nfs4_xdr_dec_secinfo_no_name()
7317 status = decode_putrootfh(xdr); in nfs4_xdr_dec_secinfo_no_name()
7318 if (status) in nfs4_xdr_dec_secinfo_no_name()
7320 status = decode_secinfo_no_name(xdr, res); in nfs4_xdr_dec_secinfo_no_name()
7322 return status; in nfs4_xdr_dec_secinfo_no_name()
7334 int status; in nfs4_xdr_dec_test_stateid() local
7336 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_test_stateid()
7337 if (status) in nfs4_xdr_dec_test_stateid()
7339 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_test_stateid()
7340 if (status) in nfs4_xdr_dec_test_stateid()
7342 status = decode_test_stateid(xdr, res); in nfs4_xdr_dec_test_stateid()
7344 return status; in nfs4_xdr_dec_test_stateid()
7356 int status; in nfs4_xdr_dec_free_stateid() local
7358 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_free_stateid()
7359 if (status) in nfs4_xdr_dec_free_stateid()
7361 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_free_stateid()
7362 if (status) in nfs4_xdr_dec_free_stateid()
7364 status = decode_free_stateid(xdr, res); in nfs4_xdr_dec_free_stateid()
7366 return status; in nfs4_xdr_dec_free_stateid()
7448 * We need to translate between nfs status return values and