• Home
  • Raw
  • Download

Lines Matching refs:op

337 	struct afs_operation *op = call->op;  in yfs_deliver_status_and_volsync()  local
346 xdr_decode_YFSFetchStatus(&bp, call, &op->file[0].scb); in yfs_deliver_status_and_volsync()
347 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_status_and_volsync()
358 struct afs_operation *op = call->op; in yfs_deliver_fs_fetch_data64() local
359 struct afs_vnode_param *vp = &op->file[0]; in yfs_deliver_fs_fetch_data64()
360 struct afs_read *req = op->fetch.req; in yfs_deliver_fs_fetch_data64()
457 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_fetch_data64()
489 .op = yfs_FS_FetchData64,
497 void yfs_fs_fetch_data(struct afs_operation *op) in yfs_fs_fetch_data() argument
499 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_fetch_data()
500 struct afs_read *req = op->fetch.req; in yfs_fs_fetch_data()
505 key_serial(op->key), vp->fid.vid, vp->fid.vnode, in yfs_fs_fetch_data()
508 call = afs_alloc_flat_call(op->net, &yfs_RXYFSFetchData64, in yfs_fs_fetch_data()
516 return afs_op_nomem(op); in yfs_fs_fetch_data()
528 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_fetch_data()
536 struct afs_operation *op = call->op; in yfs_deliver_fs_create_vnode() local
537 struct afs_vnode_param *dvp = &op->file[0]; in yfs_deliver_fs_create_vnode()
538 struct afs_vnode_param *vp = &op->file[1]; in yfs_deliver_fs_create_vnode()
550 xdr_decode_YFSFid(&bp, &op->file[1].fid); in yfs_deliver_fs_create_vnode()
554 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_create_vnode()
565 .op = yfs_FS_CreateFile,
573 void yfs_fs_create_file(struct afs_operation *op) in yfs_fs_create_file() argument
575 const struct qstr *name = &op->dentry->d_name; in yfs_fs_create_file()
576 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_create_file()
595 call = afs_alloc_flat_call(op->net, &afs_RXFSCreateFile, reqsz, rplsz); in yfs_fs_create_file()
597 return afs_op_nomem(op); in yfs_fs_create_file()
605 bp = xdr_encode_YFSStoreStatus_mode(bp, op->create.mode); in yfs_fs_create_file()
610 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_create_file()
615 .op = yfs_FS_MakeDir,
623 void yfs_fs_make_dir(struct afs_operation *op) in yfs_fs_make_dir() argument
625 const struct qstr *name = &op->dentry->d_name; in yfs_fs_make_dir()
626 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_make_dir()
644 call = afs_alloc_flat_call(op->net, &yfs_RXFSMakeDir, reqsz, rplsz); in yfs_fs_make_dir()
646 return afs_op_nomem(op); in yfs_fs_make_dir()
654 bp = xdr_encode_YFSStoreStatus_mode(bp, op->create.mode); in yfs_fs_make_dir()
658 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_make_dir()
666 struct afs_operation *op = call->op; in yfs_deliver_fs_remove_file2() local
667 struct afs_vnode_param *dvp = &op->file[0]; in yfs_deliver_fs_remove_file2()
668 struct afs_vnode_param *vp = &op->file[1]; in yfs_deliver_fs_remove_file2()
685 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_remove_file2()
694 call->op->flags |= AFS_OPERATION_DOWNGRADE; in yfs_done_fs_remove_file2()
703 .op = yfs_FS_RemoveFile2,
712 void yfs_fs_remove_file2(struct afs_operation *op) in yfs_fs_remove_file2() argument
714 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_remove_file2()
715 const struct qstr *name = &op->dentry->d_name; in yfs_fs_remove_file2()
721 call = afs_alloc_flat_call(op->net, &yfs_RXYFSRemoveFile2, in yfs_fs_remove_file2()
731 return afs_op_nomem(op); in yfs_fs_remove_file2()
742 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file2()
750 struct afs_operation *op = call->op; in yfs_deliver_fs_remove() local
751 struct afs_vnode_param *dvp = &op->file[0]; in yfs_deliver_fs_remove()
763 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_remove()
772 .op = yfs_FS_RemoveFile,
780 void yfs_fs_remove_file(struct afs_operation *op) in yfs_fs_remove_file() argument
782 const struct qstr *name = &op->dentry->d_name; in yfs_fs_remove_file()
783 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_remove_file()
789 if (!test_bit(AFS_SERVER_FL_NO_RM2, &op->server->flags)) in yfs_fs_remove_file()
790 return yfs_fs_remove_file2(op); in yfs_fs_remove_file()
792 call = afs_alloc_flat_call(op->net, &yfs_RXYFSRemoveFile, in yfs_fs_remove_file()
800 return afs_op_nomem(op); in yfs_fs_remove_file()
811 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file()
816 .op = yfs_FS_RemoveDir,
824 void yfs_fs_remove_dir(struct afs_operation *op) in yfs_fs_remove_dir() argument
826 const struct qstr *name = &op->dentry->d_name; in yfs_fs_remove_dir()
827 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_remove_dir()
833 call = afs_alloc_flat_call(op->net, &yfs_RXYFSRemoveDir, in yfs_fs_remove_dir()
841 return afs_op_nomem(op); in yfs_fs_remove_dir()
852 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_dir()
860 struct afs_operation *op = call->op; in yfs_deliver_fs_link() local
861 struct afs_vnode_param *dvp = &op->file[0]; in yfs_deliver_fs_link()
862 struct afs_vnode_param *vp = &op->file[1]; in yfs_deliver_fs_link()
875 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_link()
885 .op = yfs_FS_Link,
893 void yfs_fs_link(struct afs_operation *op) in yfs_fs_link() argument
895 const struct qstr *name = &op->dentry->d_name; in yfs_fs_link()
896 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_link()
897 struct afs_vnode_param *vp = &op->file[1]; in yfs_fs_link()
903 call = afs_alloc_flat_call(op->net, &yfs_RXYFSLink, in yfs_fs_link()
913 return afs_op_nomem(op); in yfs_fs_link()
925 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_link()
933 struct afs_operation *op = call->op; in yfs_deliver_fs_symlink() local
934 struct afs_vnode_param *dvp = &op->file[0]; in yfs_deliver_fs_symlink()
935 struct afs_vnode_param *vp = &op->file[1]; in yfs_deliver_fs_symlink()
950 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_symlink()
961 .op = yfs_FS_Symlink,
969 void yfs_fs_symlink(struct afs_operation *op) in yfs_fs_symlink() argument
971 const struct qstr *name = &op->dentry->d_name; in yfs_fs_symlink()
972 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_symlink()
979 contents_sz = strlen(op->create.symlink); in yfs_fs_symlink()
980 call = afs_alloc_flat_call(op->net, &yfs_RXYFSSymlink, in yfs_fs_symlink()
992 return afs_op_nomem(op); in yfs_fs_symlink()
1000 bp = xdr_encode_string(bp, op->create.symlink, contents_sz); in yfs_fs_symlink()
1005 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_symlink()
1013 struct afs_operation *op = call->op; in yfs_deliver_fs_rename() local
1014 struct afs_vnode_param *orig_dvp = &op->file[0]; in yfs_deliver_fs_rename()
1015 struct afs_vnode_param *new_dvp = &op->file[1]; in yfs_deliver_fs_rename()
1031 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_rename()
1041 .op = yfs_FS_Rename,
1049 void yfs_fs_rename(struct afs_operation *op) in yfs_fs_rename() argument
1051 struct afs_vnode_param *orig_dvp = &op->file[0]; in yfs_fs_rename()
1052 struct afs_vnode_param *new_dvp = &op->file[1]; in yfs_fs_rename()
1053 const struct qstr *orig_name = &op->dentry->d_name; in yfs_fs_rename()
1054 const struct qstr *new_name = &op->dentry_2->d_name; in yfs_fs_rename()
1060 call = afs_alloc_flat_call(op->net, &yfs_RXYFSRename, in yfs_fs_rename()
1071 return afs_op_nomem(op); in yfs_fs_rename()
1084 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_rename()
1092 .op = yfs_FS_StoreData64,
1100 void yfs_fs_store_data(struct afs_operation *op) in yfs_fs_store_data() argument
1102 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_store_data()
1108 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_store_data()
1110 size = (loff_t)op->store.last_to - (loff_t)op->store.first_offset; in yfs_fs_store_data()
1111 if (op->store.first != op->store.last) in yfs_fs_store_data()
1112 size += (loff_t)(op->store.last - op->store.first) << PAGE_SHIFT; in yfs_fs_store_data()
1113 pos = (loff_t)op->store.first << PAGE_SHIFT; in yfs_fs_store_data()
1114 pos += op->store.first_offset; in yfs_fs_store_data()
1124 call = afs_alloc_flat_call(op->net, &yfs_RXYFSStoreData64, in yfs_fs_store_data()
1133 return afs_op_nomem(op); in yfs_fs_store_data()
1135 call->key = op->key; in yfs_fs_store_data()
1143 bp = xdr_encode_YFSStoreStatus_mtime(bp, &op->mtime); in yfs_fs_store_data()
1150 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_store_data()
1158 .op = yfs_FS_StoreStatus,
1165 .op = yfs_FS_StoreData64,
1174 static void yfs_fs_setattr_size(struct afs_operation *op) in yfs_fs_setattr_size() argument
1176 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_setattr_size()
1178 struct iattr *attr = op->setattr.attr; in yfs_fs_setattr_size()
1182 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_setattr_size()
1184 call = afs_alloc_flat_call(op->net, &yfs_RXYFSStoreData64_as_Status, in yfs_fs_setattr_size()
1192 return afs_op_nomem(op); in yfs_fs_setattr_size()
1206 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_setattr_size()
1213 void yfs_fs_setattr(struct afs_operation *op) in yfs_fs_setattr() argument
1215 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_setattr()
1217 struct iattr *attr = op->setattr.attr; in yfs_fs_setattr()
1221 return yfs_fs_setattr_size(op); in yfs_fs_setattr()
1224 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_setattr()
1226 call = afs_alloc_flat_call(op->net, &yfs_RXYFSStoreStatus, in yfs_fs_setattr()
1233 return afs_op_nomem(op); in yfs_fs_setattr()
1244 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_setattr()
1252 struct afs_operation *op = call->op; in yfs_deliver_fs_get_volume_status() local
1274 xdr_decode_YFSFetchVolumeStatus(&bp, &op->volstatus.vs); in yfs_deliver_fs_get_volume_status()
1380 .op = yfs_FS_GetVolumeStatus,
1388 void yfs_fs_get_volume_status(struct afs_operation *op) in yfs_fs_get_volume_status() argument
1390 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_get_volume_status()
1396 call = afs_alloc_flat_call(op->net, &yfs_RXYFSGetVolumeStatus, in yfs_fs_get_volume_status()
1404 return afs_op_nomem(op); in yfs_fs_get_volume_status()
1414 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_get_volume_status()
1422 .op = yfs_FS_SetLock,
1433 .op = yfs_FS_ExtendLock,
1444 .op = yfs_FS_ReleaseLock,
1452 void yfs_fs_set_lock(struct afs_operation *op) in yfs_fs_set_lock() argument
1454 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_set_lock()
1460 call = afs_alloc_flat_call(op->net, &yfs_RXYFSSetLock, in yfs_fs_set_lock()
1467 return afs_op_nomem(op); in yfs_fs_set_lock()
1474 bp = xdr_encode_u32(bp, op->lock.type); in yfs_fs_set_lock()
1477 trace_afs_make_fs_calli(call, &vp->fid, op->lock.type); in yfs_fs_set_lock()
1478 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_set_lock()
1484 void yfs_fs_extend_lock(struct afs_operation *op) in yfs_fs_extend_lock() argument
1486 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_extend_lock()
1492 call = afs_alloc_flat_call(op->net, &yfs_RXYFSExtendLock, in yfs_fs_extend_lock()
1498 return afs_op_nomem(op); in yfs_fs_extend_lock()
1508 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_extend_lock()
1514 void yfs_fs_release_lock(struct afs_operation *op) in yfs_fs_release_lock() argument
1516 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_release_lock()
1522 call = afs_alloc_flat_call(op->net, &yfs_RXYFSReleaseLock, in yfs_fs_release_lock()
1528 return afs_op_nomem(op); in yfs_fs_release_lock()
1538 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_release_lock()
1546 struct afs_operation *op = call->op; in yfs_deliver_fs_fetch_status() local
1547 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in yfs_deliver_fs_fetch_status()
1559 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_fetch_status()
1570 .op = yfs_FS_FetchStatus,
1578 void yfs_fs_fetch_status(struct afs_operation *op) in yfs_fs_fetch_status() argument
1580 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in yfs_fs_fetch_status()
1585 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_fetch_status()
1587 call = afs_alloc_flat_call(op->net, &yfs_RXYFSFetchStatus, in yfs_fs_fetch_status()
1594 return afs_op_nomem(op); in yfs_fs_fetch_status()
1604 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_fetch_status()
1612 struct afs_operation *op = call->op; in yfs_deliver_fs_inline_bulk_status() local
1634 _debug("status count: %u/%u", tmp, op->nr_files); in yfs_deliver_fs_inline_bulk_status()
1635 if (tmp != op->nr_files) in yfs_deliver_fs_inline_bulk_status()
1652 scb = &op->file[0].scb; in yfs_deliver_fs_inline_bulk_status()
1655 scb = &op->file[1].scb; in yfs_deliver_fs_inline_bulk_status()
1658 scb = &op->more_files[call->count - 2].scb; in yfs_deliver_fs_inline_bulk_status()
1666 if (call->count < op->nr_files) in yfs_deliver_fs_inline_bulk_status()
1683 if (tmp != op->nr_files) in yfs_deliver_fs_inline_bulk_status()
1700 scb = &op->file[0].scb; in yfs_deliver_fs_inline_bulk_status()
1703 scb = &op->file[1].scb; in yfs_deliver_fs_inline_bulk_status()
1706 scb = &op->more_files[call->count - 2].scb; in yfs_deliver_fs_inline_bulk_status()
1713 if (call->count < op->nr_files) in yfs_deliver_fs_inline_bulk_status()
1726 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_inline_bulk_status()
1744 .op = yfs_FS_InlineBulkStatus,
1752 void yfs_fs_inline_bulk_status(struct afs_operation *op) in yfs_fs_inline_bulk_status() argument
1754 struct afs_vnode_param *dvp = &op->file[0]; in yfs_fs_inline_bulk_status()
1755 struct afs_vnode_param *vp = &op->file[1]; in yfs_fs_inline_bulk_status()
1761 key_serial(op->key), vp->fid.vid, vp->fid.vnode, op->nr_files); in yfs_fs_inline_bulk_status()
1763 call = afs_alloc_flat_call(op->net, &yfs_RXYFSInlineBulkStatus, in yfs_fs_inline_bulk_status()
1767 sizeof(struct yfs_xdr_YFSFid) * op->nr_files, in yfs_fs_inline_bulk_status()
1770 return afs_op_nomem(op); in yfs_fs_inline_bulk_status()
1776 bp = xdr_encode_u32(bp, op->nr_files); in yfs_fs_inline_bulk_status()
1779 for (i = 0; i < op->nr_files - 2; i++) in yfs_fs_inline_bulk_status()
1780 bp = xdr_encode_YFSFid(bp, &op->more_files[i].fid); in yfs_fs_inline_bulk_status()
1784 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_inline_bulk_status()
1792 struct afs_operation *op = call->op; in yfs_deliver_fs_fetch_opaque_acl() local
1793 struct afs_vnode_param *vp = &op->file[0]; in yfs_deliver_fs_fetch_opaque_acl()
1794 struct yfs_acl *yacl = op->yacl; in yfs_deliver_fs_fetch_opaque_acl()
1885 xdr_decode_YFSVolSync(&bp, &op->volsync); in yfs_deliver_fs_fetch_opaque_acl()
1912 .op = yfs_FS_FetchOpaqueACL,
1920 void yfs_fs_fetch_opaque_acl(struct afs_operation *op) in yfs_fs_fetch_opaque_acl() argument
1922 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_fetch_opaque_acl()
1927 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_fetch_opaque_acl()
1929 call = afs_alloc_flat_call(op->net, &yfs_RXYFSFetchOpaqueACL, in yfs_fs_fetch_opaque_acl()
1936 return afs_op_nomem(op); in yfs_fs_fetch_opaque_acl()
1946 afs_make_op_call(op, call, GFP_KERNEL); in yfs_fs_fetch_opaque_acl()
1954 .op = yfs_FS_StoreOpaqueACL2,
1962 void yfs_fs_store_opaque_acl2(struct afs_operation *op) in yfs_fs_store_opaque_acl2() argument
1964 struct afs_vnode_param *vp = &op->file[0]; in yfs_fs_store_opaque_acl2()
1966 struct afs_acl *acl = op->acl; in yfs_fs_store_opaque_acl2()
1971 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in yfs_fs_store_opaque_acl2()
1974 call = afs_alloc_flat_call(op->net, &yfs_RXYFSStoreOpaqueACL2, in yfs_fs_store_opaque_acl2()
1981 return afs_op_nomem(op); in yfs_fs_store_opaque_acl2()
1996 afs_make_op_call(op, call, GFP_KERNEL); in yfs_fs_store_opaque_acl2()