Home
last modified time | relevance | path

Searched refs:hur (Results 1 – 5 of 5) sorted by relevance

/drivers/staging/lustre/lustre/include/lustre/
Dlustre_user.h992 static inline void *hur_data(struct hsm_user_request *hur) in hur_data() argument
994 return &(hur->hur_user_item[hur->hur_request.hr_itemcount]); in hur_data()
1003 static inline ssize_t hur_len(struct hsm_user_request *hur) in hur_len() argument
1009 (__u64)hur->hur_request.hr_itemcount * in hur_len()
1010 sizeof(hur->hur_user_item[0]) + hur->hur_request.hr_data_len; in hur_len()
/drivers/staging/lustre/lustre/llite/
Ddir.c1744 struct hsm_user_request *hur; in ll_dir_ioctl() local
1747 hur = memdup_user((void *)arg, sizeof(*hur)); in ll_dir_ioctl()
1748 if (IS_ERR(hur)) in ll_dir_ioctl()
1749 return PTR_ERR(hur); in ll_dir_ioctl()
1752 totalsize = hur_len(hur); in ll_dir_ioctl()
1753 kfree(hur); in ll_dir_ioctl()
1761 hur = libcfs_kvzalloc(totalsize, GFP_NOFS); in ll_dir_ioctl()
1762 if (hur == NULL) in ll_dir_ioctl()
1766 if (copy_from_user(hur, (void *)arg, totalsize)) { in ll_dir_ioctl()
1767 kvfree(hur); in ll_dir_ioctl()
[all …]
Dfile.c3559 struct hsm_user_request *hur; in ll_layout_restore() local
3564 hur = kzalloc(len, GFP_NOFS); in ll_layout_restore()
3565 if (!hur) in ll_layout_restore()
3568 hur->hur_request.hr_action = HUA_RESTORE; in ll_layout_restore()
3569 hur->hur_request.hr_archive_id = 0; in ll_layout_restore()
3570 hur->hur_request.hr_flags = 0; in ll_layout_restore()
3571 memcpy(&hur->hur_user_item[0].hui_fid, &ll_i2info(inode)->lli_fid, in ll_layout_restore()
3572 sizeof(hur->hur_user_item[0].hui_fid)); in ll_layout_restore()
3573 hur->hur_user_item[0].hui_extent.length = -1; in ll_layout_restore()
3574 hur->hur_request.hr_itemcount = 1; in ll_layout_restore()
[all …]
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c754 const struct hsm_user_request *hur, in lmv_hsm_req_count() argument
761 for (i = 0; i < hur->hur_request.hr_itemcount; i++) { in lmv_hsm_req_count()
762 curr_tgt = lmv_find_target(lmv, &hur->hur_user_item[i].hui_fid); in lmv_hsm_req_count()
1015 struct hsm_user_request *hur = karg; in lmv_iocontrol() local
1017 unsigned int reqcount = hur->hur_request.hr_itemcount; in lmv_iocontrol()
1027 &hur->hur_user_item[0].hui_fid); in lmv_iocontrol()
1038 nr = lmv_hsm_req_count(lmv, hur, lmv->tgts[i]); in lmv_iocontrol()
1043 reqlen = offsetof(typeof(*hur), in lmv_iocontrol()
1045 + hur->hur_request.hr_data_len; in lmv_iocontrol()
1050 lmv_hsm_req_build(lmv, hur, lmv->tgts[i], req); in lmv_iocontrol()
/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1371 struct hsm_user_request *hur) in mdc_ioc_hsm_request() argument
1387 hur->hur_request.hr_itemcount in mdc_ioc_hsm_request()
1390 hur->hur_request.hr_data_len); in mdc_ioc_hsm_request()
1406 *req_hr = hur->hur_request; in mdc_ioc_hsm_request()
1414 memcpy(req_hui, hur->hur_user_item, in mdc_ioc_hsm_request()
1415 hur->hur_request.hr_itemcount * sizeof(struct hsm_user_item)); in mdc_ioc_hsm_request()
1423 memcpy(req_opaque, hur_data(hur), hur->hur_request.hr_data_len); in mdc_ioc_hsm_request()