Lines Matching refs:item
61 * Check if the current log item was first committed in this sequence.
62 * We can't rely on just the log item being in the CIL, we have to check
67 * transaction commit process when deciding what to format into the item.
78 * li_seq is written on the first commit of a log item to record the
245 * vector buffers between the check and the formatting of the item into the
256 * log item is committed for the second time, and then to only use this buffer
257 * if necessary. The buffer can remain attached to the log item until such time
259 * the incoming modification. Then during the formatting of the item we can swap
264 * This function builds a vector for the changes in each log item in the
266 * item, allocates them and attaches the vector to the log item in preparation
270 * alloc/free pattern that repeated modifications of an item would otherwise
311 * formatting, but that's not accounted to the size of the item
375 * Prepare the log item for insertion into the CIL. Calculate the difference in
376 * log space it will consume, and if it is a new item pin it as well.
390 * If there is no old LV, this is the first time we've seen the item in
407 /* attach new log vector to log item */
411 * If this is the first time the item is being committed to the
412 * CIL, store the sequence number on the log item so we can
414 * the item is being committed into.
421 * Format log item into a flat buffers
424 * changes on the log item. This enables us to relog the item in memory and
428 * This function takes the prepared log vectors attached to each log item, and
434 * done lazily either by th enext modification or the freeing of the log item.
441 * item/region encapsulation.
456 /* Bail out if we didn't find a log item. */
474 * the shadow lv on the log item.
484 /* compare to existing item size */
494 * set the item up as though it is a new insertion so
544 * consumed by the item. Add the space to the checkpoint ticket and calculate
1030 * CIL item reordering compare function. We want to order in ascending ID order,
1054 * If a log item is marked with a whiteout, we do not need to write it to the
1066 struct xfs_log_item *item;
1069 item = list_first_entry(&ctx->log_items,
1072 if (test_bit(XFS_LI_WHITEOUT, &item->li_flags)) {
1073 list_move(&item->li_cil, whiteouts);
1074 trace_xfs_cil_whiteout_skip(item);
1078 lv = item->li_lv;
1079 lv->lv_order_id = item->li_order_id;
1087 list_del_init(&item->li_cil);
1088 item->li_order_id = 0;
1089 item->li_lv = NULL;
1098 struct xfs_log_item *item = list_first_entry(whiteouts,
1100 list_del_init(&item->li_cil);
1101 trace_xfs_cil_whiteout_unpin(item);
1102 item->li_ops->iop_unpin(item, 1);
1511 * the intent or intent done item to the journal as the change will be
1515 * done item from the current transaction and release it so it doesn't get put
1548 * To do this, we need to format the item, pin it in memory if required and