Lines Matching refs:op
240 struct afs_operation *op = call->op; in afs_deliver_fs_fetch_status() local
241 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in afs_deliver_fs_fetch_status()
253 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_fetch_status()
264 .op = afs_FS_FetchStatus,
272 void afs_fs_fetch_status(struct afs_operation *op) in afs_fs_fetch_status() argument
274 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in afs_fs_fetch_status()
279 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
281 call = afs_alloc_flat_call(op->net, &afs_RXFSFetchStatus, in afs_fs_fetch_status()
284 return afs_op_nomem(op); in afs_fs_fetch_status()
295 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_status()
303 struct afs_operation *op = call->op; in afs_deliver_fs_fetch_data() local
304 struct afs_vnode_param *vp = &op->file[0]; in afs_deliver_fs_fetch_data()
305 struct afs_read *req = op->fetch.req; in afs_deliver_fs_fetch_data()
391 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_fetch_data()
412 .op = afs_FS_FetchData,
419 .op = afs_FS_FetchData64,
427 static void afs_fs_fetch_data64(struct afs_operation *op) in afs_fs_fetch_data64() argument
429 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_fetch_data64()
430 struct afs_read *req = op->fetch.req; in afs_fs_fetch_data64()
436 call = afs_alloc_flat_call(op->net, &afs_RXFSFetchData64, 32, (21 + 3 + 6) * 4); in afs_fs_fetch_data64()
438 return afs_op_nomem(op); in afs_fs_fetch_data64()
453 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_data64()
459 void afs_fs_fetch_data(struct afs_operation *op) in afs_fs_fetch_data() argument
461 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_fetch_data()
463 struct afs_read *req = op->fetch.req; in afs_fs_fetch_data()
466 if (test_bit(AFS_SERVER_FL_HAS_FS64, &op->server->flags)) in afs_fs_fetch_data()
467 return afs_fs_fetch_data64(op); in afs_fs_fetch_data()
471 call = afs_alloc_flat_call(op->net, &afs_RXFSFetchData, 24, (21 + 3 + 6) * 4); in afs_fs_fetch_data()
473 return afs_op_nomem(op); in afs_fs_fetch_data()
488 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_data()
496 struct afs_operation *op = call->op; in afs_deliver_fs_create_vnode() local
497 struct afs_vnode_param *dvp = &op->file[0]; in afs_deliver_fs_create_vnode()
498 struct afs_vnode_param *vp = &op->file[1]; in afs_deliver_fs_create_vnode()
508 xdr_decode_AFSFid(&bp, &op->file[1].fid); in afs_deliver_fs_create_vnode()
512 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_create_vnode()
523 .op = afs_FS_CreateFile,
531 void afs_fs_create_file(struct afs_operation *op) in afs_fs_create_file() argument
533 const struct qstr *name = &op->dentry->d_name; in afs_fs_create_file()
534 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_create_file()
545 call = afs_alloc_flat_call(op->net, &afs_RXFSCreateFile, in afs_fs_create_file()
548 return afs_op_nomem(op); in afs_fs_create_file()
564 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_create_file()
567 *bp++ = htonl(op->create.mode & S_IALLUGO); /* unix mode */ in afs_fs_create_file()
572 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_create_file()
577 .op = afs_FS_MakeDir,
585 void afs_fs_make_dir(struct afs_operation *op) in afs_fs_make_dir() argument
587 const struct qstr *name = &op->dentry->d_name; in afs_fs_make_dir()
588 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_make_dir()
599 call = afs_alloc_flat_call(op->net, &afs_RXFSMakeDir, in afs_fs_make_dir()
602 return afs_op_nomem(op); in afs_fs_make_dir()
618 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_make_dir()
621 *bp++ = htonl(op->create.mode & S_IALLUGO); /* unix mode */ in afs_fs_make_dir()
626 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_make_dir()
634 struct afs_operation *op = call->op; in afs_deliver_fs_file_status_and_vol() local
635 struct afs_vnode_param *vp = &op->file[0]; in afs_deliver_fs_file_status_and_vol()
646 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_file_status_and_vol()
657 .op = afs_FS_RemoveFile,
665 void afs_fs_remove_file(struct afs_operation *op) in afs_fs_remove_file() argument
667 const struct qstr *name = &op->dentry->d_name; in afs_fs_remove_file()
668 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_remove_file()
679 call = afs_alloc_flat_call(op->net, &afs_RXFSRemoveFile, in afs_fs_remove_file()
682 return afs_op_nomem(op); in afs_fs_remove_file()
700 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_remove_file()
705 .op = afs_FS_RemoveDir,
713 void afs_fs_remove_dir(struct afs_operation *op) in afs_fs_remove_dir() argument
715 const struct qstr *name = &op->dentry->d_name; in afs_fs_remove_dir()
716 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_remove_dir()
727 call = afs_alloc_flat_call(op->net, &afs_RXFSRemoveDir, in afs_fs_remove_dir()
730 return afs_op_nomem(op); in afs_fs_remove_dir()
748 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_remove_dir()
756 struct afs_operation *op = call->op; in afs_deliver_fs_link() local
757 struct afs_vnode_param *dvp = &op->file[0]; in afs_deliver_fs_link()
758 struct afs_vnode_param *vp = &op->file[1]; in afs_deliver_fs_link()
772 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_link()
783 .op = afs_FS_Link,
791 void afs_fs_link(struct afs_operation *op) in afs_fs_link() argument
793 const struct qstr *name = &op->dentry->d_name; in afs_fs_link()
794 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_link()
795 struct afs_vnode_param *vp = &op->file[1]; in afs_fs_link()
806 call = afs_alloc_flat_call(op->net, &afs_RXFSLink, reqsz, (21 + 21 + 6) * 4); in afs_fs_link()
808 return afs_op_nomem(op); in afs_fs_link()
829 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_link()
837 struct afs_operation *op = call->op; in afs_deliver_fs_symlink() local
838 struct afs_vnode_param *dvp = &op->file[0]; in afs_deliver_fs_symlink()
839 struct afs_vnode_param *vp = &op->file[1]; in afs_deliver_fs_symlink()
854 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_symlink()
865 .op = afs_FS_Symlink,
873 void afs_fs_symlink(struct afs_operation *op) in afs_fs_symlink() argument
875 const struct qstr *name = &op->dentry->d_name; in afs_fs_symlink()
876 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_symlink()
886 c_namesz = strlen(op->create.symlink); in afs_fs_symlink()
891 call = afs_alloc_flat_call(op->net, &afs_RXFSSymlink, reqsz, in afs_fs_symlink()
894 return afs_op_nomem(op); in afs_fs_symlink()
910 memcpy(bp, op->create.symlink, c_namesz); in afs_fs_symlink()
917 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_symlink()
925 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_symlink()
933 struct afs_operation *op = call->op; in afs_deliver_fs_rename() local
934 struct afs_vnode_param *orig_dvp = &op->file[0]; in afs_deliver_fs_rename()
935 struct afs_vnode_param *new_dvp = &op->file[1]; in afs_deliver_fs_rename()
949 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_rename()
960 .op = afs_FS_Rename,
968 void afs_fs_rename(struct afs_operation *op) in afs_fs_rename() argument
970 struct afs_vnode_param *orig_dvp = &op->file[0]; in afs_fs_rename()
971 struct afs_vnode_param *new_dvp = &op->file[1]; in afs_fs_rename()
972 const struct qstr *orig_name = &op->dentry->d_name; in afs_fs_rename()
973 const struct qstr *new_name = &op->dentry_2->d_name; in afs_fs_rename()
991 call = afs_alloc_flat_call(op->net, &afs_RXFSRename, reqsz, (21 + 21 + 6) * 4); in afs_fs_rename()
993 return afs_op_nomem(op); in afs_fs_rename()
1022 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_rename()
1030 struct afs_operation *op = call->op; in afs_deliver_fs_store_data() local
1031 struct afs_vnode_param *vp = &op->file[0]; in afs_deliver_fs_store_data()
1044 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_store_data()
1055 .op = afs_FS_StoreData,
1062 .op = afs_FS_StoreData64,
1070 static void afs_fs_store_data64(struct afs_operation *op) in afs_fs_store_data64() argument
1072 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_store_data64()
1077 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_store_data64()
1079 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreData64, in afs_fs_store_data64()
1083 return afs_op_nomem(op); in afs_fs_store_data64()
1085 call->write_iter = op->store.write_iter; in afs_fs_store_data64()
1095 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_store_data64()
1101 *bp++ = htonl(upper_32_bits(op->store.pos)); in afs_fs_store_data64()
1102 *bp++ = htonl(lower_32_bits(op->store.pos)); in afs_fs_store_data64()
1103 *bp++ = htonl(upper_32_bits(op->store.size)); in afs_fs_store_data64()
1104 *bp++ = htonl(lower_32_bits(op->store.size)); in afs_fs_store_data64()
1105 *bp++ = htonl(upper_32_bits(op->store.i_size)); in afs_fs_store_data64()
1106 *bp++ = htonl(lower_32_bits(op->store.i_size)); in afs_fs_store_data64()
1110 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_store_data64()
1116 void afs_fs_store_data(struct afs_operation *op) in afs_fs_store_data() argument
1118 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_store_data()
1123 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_store_data()
1126 (unsigned long long)op->store.size, in afs_fs_store_data()
1127 (unsigned long long)op->store.pos, in afs_fs_store_data()
1128 (unsigned long long)op->store.i_size); in afs_fs_store_data()
1130 if (test_bit(AFS_SERVER_FL_HAS_FS64, &op->server->flags)) in afs_fs_store_data()
1131 return afs_fs_store_data64(op); in afs_fs_store_data()
1133 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreData, in afs_fs_store_data()
1137 return afs_op_nomem(op); in afs_fs_store_data()
1139 call->write_iter = op->store.write_iter; in afs_fs_store_data()
1149 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_store_data()
1155 *bp++ = htonl(lower_32_bits(op->store.pos)); in afs_fs_store_data()
1156 *bp++ = htonl(lower_32_bits(op->store.size)); in afs_fs_store_data()
1157 *bp++ = htonl(lower_32_bits(op->store.i_size)); in afs_fs_store_data()
1161 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_store_data()
1169 .op = afs_FS_StoreStatus,
1176 .op = afs_FS_StoreData,
1183 .op = afs_FS_StoreData64,
1192 static void afs_fs_setattr_size64(struct afs_operation *op) in afs_fs_setattr_size64() argument
1194 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_setattr_size64()
1196 struct iattr *attr = op->setattr.attr; in afs_fs_setattr_size64()
1200 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_setattr_size64()
1204 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreData64_as_Status, in afs_fs_setattr_size64()
1208 return afs_op_nomem(op); in afs_fs_setattr_size64()
1228 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_setattr_size64()
1235 static void afs_fs_setattr_size(struct afs_operation *op) in afs_fs_setattr_size() argument
1237 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_setattr_size()
1239 struct iattr *attr = op->setattr.attr; in afs_fs_setattr_size()
1243 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_setattr_size()
1246 if (test_bit(AFS_SERVER_FL_HAS_FS64, &op->server->flags)) in afs_fs_setattr_size()
1247 return afs_fs_setattr_size64(op); in afs_fs_setattr_size()
1249 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreData_as_Status, in afs_fs_setattr_size()
1253 return afs_op_nomem(op); in afs_fs_setattr_size()
1270 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_setattr_size()
1277 void afs_fs_setattr(struct afs_operation *op) in afs_fs_setattr() argument
1279 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_setattr()
1281 struct iattr *attr = op->setattr.attr; in afs_fs_setattr()
1285 return afs_fs_setattr_size(op); in afs_fs_setattr()
1288 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_setattr()
1290 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreStatus, in afs_fs_setattr()
1294 return afs_op_nomem(op); in afs_fs_setattr()
1303 xdr_encode_AFS_StoreStatus(&bp, op->setattr.attr); in afs_fs_setattr()
1307 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_setattr()
1315 struct afs_operation *op = call->op; in afs_deliver_fs_get_volume_status() local
1337 xdr_decode_AFSFetchVolumeStatus(&bp, &op->volstatus.vs); in afs_deliver_fs_get_volume_status()
1443 .op = afs_FS_GetVolumeStatus,
1451 void afs_fs_get_volume_status(struct afs_operation *op) in afs_fs_get_volume_status() argument
1453 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_get_volume_status()
1459 call = afs_alloc_flat_call(op->net, &afs_RXFSGetVolumeStatus, 2 * 4, in afs_fs_get_volume_status()
1462 return afs_op_nomem(op); in afs_fs_get_volume_status()
1471 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_get_volume_status()
1479 struct afs_operation *op = call->op; in afs_deliver_fs_xxxx_lock() local
1491 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_xxxx_lock()
1502 .op = afs_FS_SetLock,
1513 .op = afs_FS_ExtendLock,
1524 .op = afs_FS_ReleaseLock,
1532 void afs_fs_set_lock(struct afs_operation *op) in afs_fs_set_lock() argument
1534 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_set_lock()
1540 call = afs_alloc_flat_call(op->net, &afs_RXFSSetLock, 5 * 4, 6 * 4); in afs_fs_set_lock()
1542 return afs_op_nomem(op); in afs_fs_set_lock()
1550 *bp++ = htonl(op->lock.type); in afs_fs_set_lock()
1553 trace_afs_make_fs_calli(call, &vp->fid, op->lock.type); in afs_fs_set_lock()
1554 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_set_lock()
1560 void afs_fs_extend_lock(struct afs_operation *op) in afs_fs_extend_lock() argument
1562 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_extend_lock()
1568 call = afs_alloc_flat_call(op->net, &afs_RXFSExtendLock, 4 * 4, 6 * 4); in afs_fs_extend_lock()
1570 return afs_op_nomem(op); in afs_fs_extend_lock()
1581 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_extend_lock()
1587 void afs_fs_release_lock(struct afs_operation *op) in afs_fs_release_lock() argument
1589 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_release_lock()
1595 call = afs_alloc_flat_call(op->net, &afs_RXFSReleaseLock, 4 * 4, 6 * 4); in afs_fs_release_lock()
1597 return afs_op_nomem(op); in afs_fs_release_lock()
1608 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_release_lock()
1624 .op = afs_FS_GiveUpAllCallBacks,
1733 .op = afs_FS_GetCapabilities,
1783 struct afs_operation *op = call->op; in afs_deliver_fs_inline_bulk_status() local
1805 _debug("status count: %u/%u", tmp, op->nr_files); in afs_deliver_fs_inline_bulk_status()
1806 if (tmp != op->nr_files) in afs_deliver_fs_inline_bulk_status()
1823 scb = &op->file[0].scb; in afs_deliver_fs_inline_bulk_status()
1826 scb = &op->file[1].scb; in afs_deliver_fs_inline_bulk_status()
1829 scb = &op->more_files[call->count - 2].scb; in afs_deliver_fs_inline_bulk_status()
1837 if (call->count < op->nr_files) in afs_deliver_fs_inline_bulk_status()
1854 if (tmp != op->nr_files) in afs_deliver_fs_inline_bulk_status()
1871 scb = &op->file[0].scb; in afs_deliver_fs_inline_bulk_status()
1874 scb = &op->file[1].scb; in afs_deliver_fs_inline_bulk_status()
1877 scb = &op->more_files[call->count - 2].scb; in afs_deliver_fs_inline_bulk_status()
1884 if (call->count < op->nr_files) in afs_deliver_fs_inline_bulk_status()
1918 if (call->op) in afs_done_fs_inline_bulk_status()
1919 set_bit(AFS_VOLUME_MAYBE_NO_IBULK, &call->op->volume->flags); in afs_done_fs_inline_bulk_status()
1928 .op = afs_FS_InlineBulkStatus,
1937 void afs_fs_inline_bulk_status(struct afs_operation *op) in afs_fs_inline_bulk_status() argument
1939 struct afs_vnode_param *dvp = &op->file[0]; in afs_fs_inline_bulk_status()
1940 struct afs_vnode_param *vp = &op->file[1]; in afs_fs_inline_bulk_status()
1945 if (test_bit(AFS_SERVER_FL_NO_IBULK, &op->server->flags)) { in afs_fs_inline_bulk_status()
1946 afs_op_set_error(op, -ENOTSUPP); in afs_fs_inline_bulk_status()
1951 key_serial(op->key), vp->fid.vid, vp->fid.vnode, op->nr_files); in afs_fs_inline_bulk_status()
1953 call = afs_alloc_flat_call(op->net, &afs_RXFSInlineBulkStatus, in afs_fs_inline_bulk_status()
1954 (2 + op->nr_files * 3) * 4, in afs_fs_inline_bulk_status()
1957 return afs_op_nomem(op); in afs_fs_inline_bulk_status()
1962 *bp++ = htonl(op->nr_files); in afs_fs_inline_bulk_status()
1969 for (i = 0; i < op->nr_files - 2; i++) { in afs_fs_inline_bulk_status()
1970 *bp++ = htonl(op->more_files[i].fid.vid); in afs_fs_inline_bulk_status()
1971 *bp++ = htonl(op->more_files[i].fid.vnode); in afs_fs_inline_bulk_status()
1972 *bp++ = htonl(op->more_files[i].fid.unique); in afs_fs_inline_bulk_status()
1977 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_inline_bulk_status()
1985 struct afs_operation *op = call->op; in afs_deliver_fs_fetch_acl() local
1986 struct afs_vnode_param *vp = &op->file[0]; in afs_deliver_fs_fetch_acl()
2012 op->acl = acl; in afs_deliver_fs_fetch_acl()
2036 xdr_decode_AFSVolSync(&bp, &op->volsync); in afs_deliver_fs_fetch_acl()
2054 .op = afs_FS_FetchACL,
2061 void afs_fs_fetch_acl(struct afs_operation *op) in afs_fs_fetch_acl() argument
2063 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_fetch_acl()
2068 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_acl()
2070 call = afs_alloc_flat_call(op->net, &afs_RXFSFetchACL, 16, (21 + 6) * 4); in afs_fs_fetch_acl()
2072 return afs_op_nomem(op); in afs_fs_fetch_acl()
2083 afs_make_op_call(op, call, GFP_KERNEL); in afs_fs_fetch_acl()
2091 .op = afs_FS_StoreACL,
2099 void afs_fs_store_acl(struct afs_operation *op) in afs_fs_store_acl() argument
2101 struct afs_vnode_param *vp = &op->file[0]; in afs_fs_store_acl()
2103 const struct afs_acl *acl = op->acl; in afs_fs_store_acl()
2108 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_store_acl()
2111 call = afs_alloc_flat_call(op->net, &afs_RXFSStoreACL, in afs_fs_store_acl()
2114 return afs_op_nomem(op); in afs_fs_store_acl()
2129 afs_make_op_call(op, call, GFP_KERNEL); in afs_fs_store_acl()