Home
last modified time | relevance | path

Searched refs:lv (Results 1 – 19 of 19) sorted by relevance

/fs/xfs/
Dxfs_log_cil.c145 struct xfs_log_vec *lv; in xlog_cil_alloc_shadow_bufs() local
202 lv = kmem_alloc(buf_size, KM_SLEEP|KM_NOFS); in xlog_cil_alloc_shadow_bufs()
203 memset(lv, 0, xlog_cil_iovec_space(niovecs)); in xlog_cil_alloc_shadow_bufs()
205 lv->lv_item = lip; in xlog_cil_alloc_shadow_bufs()
206 lv->lv_size = buf_size; in xlog_cil_alloc_shadow_bufs()
208 lv->lv_buf_len = XFS_LOG_VEC_ORDERED; in xlog_cil_alloc_shadow_bufs()
210 lv->lv_iovecp = (struct xfs_log_iovec *)&lv[1]; in xlog_cil_alloc_shadow_bufs()
211 lip->li_lv_shadow = lv; in xlog_cil_alloc_shadow_bufs()
214 lv = lip->li_lv_shadow; in xlog_cil_alloc_shadow_bufs()
216 lv->lv_buf_len = XFS_LOG_VEC_ORDERED; in xlog_cil_alloc_shadow_bufs()
[all …]
Dxfs_log.h35 xlog_prepare_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec **vecp, in xlog_prepare_iovec() argument
41 ASSERT(vec - lv->lv_iovecp < lv->lv_niovecs); in xlog_prepare_iovec()
44 vec = &lv->lv_iovecp[0]; in xlog_prepare_iovec()
48 vec->i_addr = lv->lv_buf + lv->lv_buf_len; in xlog_prepare_iovec()
67 xlog_finish_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec *vec, int len) in xlog_finish_iovec() argument
69 lv->lv_buf_len += round_up(len, sizeof(uint64_t)); in xlog_finish_iovec()
70 lv->lv_bytes += len; in xlog_finish_iovec()
75 xlog_copy_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec **vecp, in xlog_copy_iovec() argument
80 buf = xlog_prepare_iovec(lv, vecp, type); in xlog_copy_iovec()
82 xlog_finish_iovec(lv, *vecp, len); in xlog_copy_iovec()
Dxfs_inode_item.c150 struct xfs_log_vec *lv, in xfs_inode_item_format_data_fork() argument
170 p = xlog_prepare_iovec(lv, vecp, XLOG_REG_TYPE_IEXT); in xfs_inode_item_format_data_fork()
172 xlog_finish_iovec(lv, *vecp, data_bytes); in xfs_inode_item_format_data_fork()
190 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IBROOT, in xfs_inode_item_format_data_fork()
217 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_ILOCAL, in xfs_inode_item_format_data_fork()
249 struct xfs_log_vec *lv, in xfs_inode_item_format_attr_fork() argument
269 p = xlog_prepare_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_EXT); in xfs_inode_item_format_attr_fork()
271 xlog_finish_iovec(lv, *vecp, data_bytes); in xfs_inode_item_format_attr_fork()
287 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_BROOT, in xfs_inode_item_format_attr_fork()
311 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_LOCAL, in xfs_inode_item_format_attr_fork()
[all …]
Dxfs_dquot_item.c58 struct xfs_log_vec *lv) in xfs_qm_dquot_logitem_format() argument
64 qlf = xlog_prepare_iovec(lv, &vecp, XLOG_REG_TYPE_QFORMAT); in xfs_qm_dquot_logitem_format()
71 xlog_finish_iovec(lv, vecp, sizeof(struct xfs_dq_logformat)); in xfs_qm_dquot_logitem_format()
73 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_DQUOT, in xfs_qm_dquot_logitem_format()
326 struct xfs_log_vec *lv) in xfs_qm_qoff_logitem_format() argument
332 qlf = xlog_prepare_iovec(lv, &vecp, XLOG_REG_TYPE_QUOTAOFF); in xfs_qm_qoff_logitem_format()
336 xlog_finish_iovec(lv, vecp, sizeof(struct xfs_qoff_logitem)); in xfs_qm_qoff_logitem_format()
Dxfs_log.c2103 struct xfs_log_vec *lv; in xlog_write_calc_vec_length() local
2112 for (lv = log_vector; lv; lv = lv->lv_next) { in xlog_write_calc_vec_length()
2114 if (lv->lv_buf_len == XFS_LOG_VEC_ORDERED) in xlog_write_calc_vec_length()
2117 headers += lv->lv_niovecs; in xlog_write_calc_vec_length()
2119 for (i = 0; i < lv->lv_niovecs; i++) { in xlog_write_calc_vec_length()
2120 struct xfs_log_iovec *vecp = &lv->lv_iovecp[i]; in xlog_write_calc_vec_length()
2335 struct xfs_log_vec *lv; in xlog_write() local
2368 lv = log_vector; in xlog_write()
2369 vecp = lv->lv_iovecp; in xlog_write()
2370 while (lv && (!lv->lv_niovecs || index < lv->lv_niovecs)) { in xlog_write()
[all …]
Dxfs_buf_item.c188 struct xfs_log_vec *lv, in xfs_buf_item_copy_iovec() argument
196 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_BCHUNK, in xfs_buf_item_copy_iovec()
216 struct xfs_log_vec *lv, in xfs_buf_item_format_segment() argument
247 blfp = xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_BFORMAT, blfp, base_size); in xfs_buf_item_format_segment()
284 xfs_buf_item_copy_iovec(lv, vecp, bp, offset, in xfs_buf_item_format_segment()
290 xfs_buf_item_copy_iovec(lv, vecp, bp, offset, in xfs_buf_item_format_segment()
312 struct xfs_log_vec *lv) in xfs_buf_item_format() argument
353 xfs_buf_item_format_segment(bip, lv, &vecp, offset, in xfs_buf_item_format()
Dxfs_bmap_item.c78 struct xfs_log_vec *lv) in xfs_bui_item_format() argument
89 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_BUI_FORMAT, &buip->bui_format, in xfs_bui_item_format()
251 struct xfs_log_vec *lv) in xfs_bud_item_format() argument
259 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_BUD_FORMAT, &budp->bud_format, in xfs_bud_item_format()
Dxfs_rmap_item.c76 struct xfs_log_vec *lv) in xfs_rui_item_format() argument
87 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_RUI_FORMAT, &ruip->rui_format, in xfs_rui_item_format()
277 struct xfs_log_vec *lv) in xfs_rud_item_format() argument
285 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_RUD_FORMAT, &rudp->rud_format, in xfs_rud_item_format()
Dxfs_refcount_item.c76 struct xfs_log_vec *lv) in xfs_cui_item_format() argument
87 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_CUI_FORMAT, &cuip->cui_format, in xfs_cui_item_format()
255 struct xfs_log_vec *lv) in xfs_cud_item_format() argument
263 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_CUD_FORMAT, &cudp->cud_format, in xfs_cud_item_format()
Dxfs_extfree_item.c86 struct xfs_log_vec *lv) in xfs_efi_item_format() argument
97 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_EFI_FORMAT, in xfs_efi_item_format()
347 struct xfs_log_vec *lv) in xfs_efd_item_format() argument
357 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_EFD_FORMAT, in xfs_efd_item_format()
Dxfs_trans.c824 struct xfs_log_vec *lv; in xfs_trans_committed_bulk() local
833 for (lv = log_vector; lv; lv = lv->lv_next ) { in xfs_trans_committed_bulk()
834 struct xfs_log_item *lip = lv->lv_item; in xfs_trans_committed_bulk()
874 log_items[i++] = lv->lv_item; in xfs_trans_committed_bulk()
Dxfs_icreate_item.c61 struct xfs_log_vec *lv) in xfs_icreate_item_format() argument
66 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_ICREATE, in xfs_icreate_item_format()
Dxfs_trans_priv.h36 void xfs_trans_committed_bulk(struct xfs_ail *ailp, struct xfs_log_vec *lv,
/fs/jfs/
Djfs_dtree.c309 struct lv *lv; in lock_index() local
316 lv = &llck->lv[llck->index]; in lock_index()
322 lv->offset = ((index - 2) & 511) >> 1; in lock_index()
323 lv->length = 1; in lock_index()
343 struct lv *lv; in add_index() local
428 lv = &llck->lv[0]; in add_index()
430 lv->offset = 0; in add_index()
431 lv->length = 6; /* tlckDATA slot size is 16 bytes */ in add_index()
834 struct lv *lv; in dtInsert() local
891 lv = & dtlck->lv[0]; in dtInsert()
[all …]
Djfs_txnmgr.h162 struct lv { struct
181 struct lv lv[20]; /* 40: */ member
197 struct lv header; /* 2: */
198 struct lv lwm; /* 2: low water mark */
199 struct lv hwm; /* 2: high water mark */
200 struct lv twm; /* 2: */
Djfs_imap.c617 struct lv *lv; in diWrite() local
708 lv = ilinelock->lv; in diWrite()
709 for (n = 0; n < ilinelock->index; n++, lv++) { in diWrite()
710 memcpy(&xp->xad[lv->offset], &p->xad[lv->offset], in diWrite()
711 lv->length << L2XTSLOTSIZE); in diWrite()
744 lv = ilinelock->lv; in diWrite()
745 for (n = 0; n < ilinelock->index; n++, lv++) { in diWrite()
746 memcpy(&xp->xad[lv->offset], &p->xad[lv->offset], in diWrite()
747 lv->length << L2XTSLOTSIZE); in diWrite()
768 lv = ilinelock->lv; in diWrite()
[all …]
Djfs_logmgr.c373 struct lv *lv; in lmWriteRecord() local
421 lv = linelock->lv; in lmWriteRecord()
422 for (i = 0; i < linelock->index; i++, lv++) { in lmWriteRecord()
423 if (lv->length == 0) in lmWriteRecord()
439 src = (u8 *) p + (lv->offset << l2linesize); in lmWriteRecord()
440 srclen = lv->length << l2linesize; in lmWriteRecord()
469 lvd->offset = cpu_to_le16(lv->offset); in lmWriteRecord()
470 lvd->length = cpu_to_le16(lv->length); in lmWriteRecord()
473 lv->offset, lv->length); in lmWriteRecord()
Dnamei.c1094 struct lv *lv; in jfs_rename() local
1274 lv = & dtlck->lv[0]; in jfs_rename()
1275 lv->offset = 0; in jfs_rename()
1276 lv->length = 1; in jfs_rename()
/fs/nfs/blocklayout/
Dblocklayout.c500 struct layout_verification *lv) in verify_extent() argument
502 if (lv->mode == IOMODE_READ) { in verify_extent()
506 if (be->be_f_offset != lv->start) in verify_extent()
508 lv->start += be->be_length; in verify_extent()
513 if (be->be_f_offset != lv->start) in verify_extent()
515 if (lv->cowread > lv->start) in verify_extent()
517 lv->start += be->be_length; in verify_extent()
518 lv->inval = lv->start; in verify_extent()
521 if (be->be_f_offset != lv->start) in verify_extent()
523 lv->start += be->be_length; in verify_extent()
[all …]