Home
last modified time | relevance | path

Searched refs:i_len (Results 1 – 16 of 16) sorted by relevance

/fs/xfs/
Dxfs_attr_item.c91 nv->name.i_len = name_len; in xfs_attri_log_nameval_alloc()
97 nv->value.i_len = value_len; in xfs_attri_log_nameval_alloc()
101 nv->value.i_len = 0; in xfs_attri_log_nameval_alloc()
148 xlog_calc_iovec_len(nv->name.i_len); in xfs_attri_item_size()
150 if (!nv->value.i_len) in xfs_attri_item_size()
154 *nbytes += xlog_calc_iovec_len(nv->value.i_len); in xfs_attri_item_size()
181 ASSERT(nv->name.i_len > 0); in xfs_attri_item_format()
184 if (nv->value.i_len > 0) in xfs_attri_item_format()
191 if (nv->value.i_len > 0) in xfs_attri_item_format()
382 attrp->alfi_value_len = attr->xattri_nameval->value.i_len; in xfs_attr_log_item()
[all …]
Dxfs_dquot_item_recover.c40 if (item->ri_buf[1].i_len < sizeof(struct xfs_disk_dquot)) in xlog_recover_dquot_ra_pass2()
87 if (item->ri_buf[1].i_len < sizeof(struct xfs_disk_dquot)) { in xlog_recover_dquot_commit_pass2()
89 item->ri_buf[1].i_len, __func__); in xlog_recover_dquot_commit_pass2()
150 memcpy(ddq, recddq, item->ri_buf[1].i_len); in xlog_recover_dquot_commit_pass2()
Dxfs_extfree_item.c182 if (buf->i_len == len) { in xfs_efi_copy_format()
190 } else if (buf->i_len == len32) { in xfs_efi_copy_format()
204 } else if (buf->i_len == len64) { in xfs_efi_copy_format()
220 buf->i_len); in xfs_efi_copy_format()
813 if (item->ri_buf[0].i_len < xfs_efi_log_format_sizeof(0)) { in xlog_recover_efi_commit_pass2()
815 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_efi_commit_pass2()
852 int buflen = item->ri_buf[0].i_len; in xlog_recover_efd_commit_pass2()
862 if (item->ri_buf[0].i_len != xfs_efd_log_format32_sizeof( in xlog_recover_efd_commit_pass2()
864 item->ri_buf[0].i_len != xfs_efd_log_format64_sizeof( in xlog_recover_efd_commit_pass2()
Dxfs_bmap_item.c665 if (item->ri_buf[0].i_len < xfs_bui_log_format_sizeof(0)) { in xlog_recover_bui_commit_pass2()
667 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bui_commit_pass2()
673 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bui_commit_pass2()
678 if (item->ri_buf[0].i_len != len) { in xlog_recover_bui_commit_pass2()
680 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bui_commit_pass2()
715 if (item->ri_buf[0].i_len != sizeof(struct xfs_bud_log_format)) { in xlog_recover_bud_commit_pass2()
717 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bud_commit_pass2()
Dxfs_inode_item_recover.c31 if (item->ri_buf[0].i_len == sizeof(struct xfs_inode_log_format)) { in xlog_recover_inode_ra_pass2()
291 if (item->ri_buf[0].i_len == sizeof(struct xfs_inode_log_format)) { in xlog_recover_inode_commit_pass2()
435 if (unlikely(item->ri_buf[1].i_len > isize)) { in xlog_recover_inode_commit_pass2()
440 in_f->ilf_ino, item->ri_buf[1].i_len); in xlog_recover_inode_commit_pass2()
463 len = item->ri_buf[2].i_len; in xlog_recover_inode_commit_pass2()
501 len = item->ri_buf[attr_index].i_len; in xlog_recover_inode_commit_pass2()
Dxfs_buf_item_recover.c189 item->ri_buf[0].i_len); in xlog_recover_buf_commit_pass1()
471 ASSERT(item->ri_buf[i].i_len % XFS_BLF_CHUNK == 0); in xlog_recover_do_reg_buffer()
483 if (item->ri_buf[i].i_len < (nbits << XFS_BLF_SHIFT)) in xlog_recover_do_reg_buffer()
484 nbits = item->ri_buf[i].i_len >> XFS_BLF_SHIFT; in xlog_recover_do_reg_buffer()
499 if (item->ri_buf[i].i_len < size_disk_dquot) { in xlog_recover_do_reg_buffer()
502 item->ri_buf[i].i_len, __func__); in xlog_recover_do_reg_buffer()
653 ASSERT((item->ri_buf[item_index].i_len % XFS_BLF_CHUNK) == 0); in xlog_recover_do_inode_buffer()
Dxfs_refcount_item.c685 if (item->ri_buf[0].i_len < xfs_cui_log_format_sizeof(0)) { in xlog_recover_cui_commit_pass2()
687 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_cui_commit_pass2()
692 if (item->ri_buf[0].i_len != len) { in xlog_recover_cui_commit_pass2()
694 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_cui_commit_pass2()
729 if (item->ri_buf[0].i_len != sizeof(struct xfs_cud_log_format)) { in xlog_recover_cud_commit_pass2()
731 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_cud_commit_pass2()
Dxfs_rmap_item.c692 if (item->ri_buf[0].i_len < xfs_rui_log_format_sizeof(0)) { in xlog_recover_rui_commit_pass2()
694 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_rui_commit_pass2()
699 if (item->ri_buf[0].i_len != len) { in xlog_recover_rui_commit_pass2()
701 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_rui_commit_pass2()
736 if (item->ri_buf[0].i_len != sizeof(struct xfs_rud_log_format)) { in xlog_recover_rud_commit_pass2()
738 rud_formatp, item->ri_buf[0].i_len); in xlog_recover_rud_commit_pass2()
Dxfs_log.h69 vec->i_len = len; in xlog_finish_iovec()
94 return xlog_copy_iovec(lv, vecp, src->i_type, src->i_addr, src->i_len); in xlog_copy_from_iovec()
Dxfs_log_cil.c939 .i_len = sizeof(struct xlog_op_header), in xlog_cil_write_commit_record()
958 ctx->ticket->t_curr_res -= reg.i_len; in xlog_cil_write_commit_record()
959 error = xlog_write(log, ctx, &lv_chain, ctx->ticket, reg.i_len); in xlog_cil_write_commit_record()
1002 hdr->lhdr[0].i_len = sizeof(struct xlog_op_header); in xlog_cil_build_trans_hdr()
1018 hdr->lhdr[1].i_len = sizeof(struct xlog_op_header) + in xlog_cil_build_trans_hdr()
1024 lvhdr->lv_bytes = hdr->lhdr[0].i_len + hdr->lhdr[1].i_len; in xlog_cil_build_trans_hdr()
Dxfs_log.c927 .i_len = sizeof(unmount_rec), in xlog_write_unmount_record()
944 return xlog_write(log, NULL, &lv_chain, ticket, reg.i_len); in xlog_write_unmount_record()
2200 int dumplen = min(vec->i_len, 32); in xlog_print_trans()
2204 xfs_warn(mp, " len = %d", vec->i_len); in xlog_print_trans()
2263 reg->i_len, len, record_cnt, data_cnt); in xlog_write_full()
2346 rlen = min_t(uint32_t, reg->i_len, iclog->ic_size - *log_offset); in xlog_write_partial()
2350 if (rlen != reg->i_len) in xlog_write_partial()
2357 if (rlen == reg->i_len) in xlog_write_partial()
2411 rlen = reg->i_len - reg_offset; in xlog_write_partial()
Dxfs_buf_item.c43 if (offsetof(struct xfs_buf_log_format, blf_data_map) > iovec->i_len) in xfs_buf_log_check_iovec()
46 item_end = (char *)iovec->i_addr + iovec->i_len; in xfs_buf_log_check_iovec()
Dxfs_log_recover.c2099 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
2105 item->ri_buf[item->ri_cnt-1].i_len += len; in xlog_recover_add_to_cont_trans()
2206 item->ri_buf[item->ri_cnt].i_len = len; in xlog_recover_add_to_trans()
Dxfs_inode_item.c1148 if (buf->i_len != sizeof(*in_f32)) { in xfs_inode_item_format_convert()
/fs/udf/
Dunicode.c356 const uint8_t *ocu_i, int i_len) in udf_dstrCS0toChar() argument
360 if (i_len > 0) { in udf_dstrCS0toChar()
361 s_len = ocu_i[i_len - 1]; in udf_dstrCS0toChar()
362 if (s_len >= i_len) { in udf_dstrCS0toChar()
364 " truncating\n", s_len, i_len); in udf_dstrCS0toChar()
365 s_len = i_len - 1; in udf_dstrCS0toChar()
/fs/xfs/libxfs/
Dxfs_log_format.h197 int i_len; /* length in bytes of region */ member