Lines Matching refs:ref
180 struct ubifs_ref_node *ref; in ubifs_add_bud_to_log() local
185 ref = kzalloc(c->ref_node_alsz, GFP_NOFS); in ubifs_add_bud_to_log()
186 if (!ref) { in ubifs_add_bud_to_log()
240 ref->ch.node_type = UBIFS_REF_NODE; in ubifs_add_bud_to_log()
241 ref->lnum = cpu_to_le32(bud->lnum); in ubifs_add_bud_to_log()
242 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log()
243 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log()
273 err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum, in ubifs_add_bud_to_log()
283 kfree(ref); in ubifs_add_bud_to_log()
288 kfree(ref); in ubifs_add_bud_to_log()
363 struct ubifs_ref_node *ref; in ubifs_log_start_commit() local
397 ref = buf + len; in ubifs_log_start_commit()
398 ref->ch.node_type = UBIFS_REF_NODE; in ubifs_log_start_commit()
399 ref->lnum = cpu_to_le32(lnum); in ubifs_log_start_commit()
400 ref->offs = cpu_to_le32(offs); in ubifs_log_start_commit()
401 ref->jhead = cpu_to_le32(i); in ubifs_log_start_commit()
403 ubifs_prepare_node(c, ref, UBIFS_REF_NODE_SZ, 0); in ubifs_log_start_commit()
657 struct ubifs_ref_node *ref = snod->node; in ubifs_consolidate_log() local
658 int ref_lnum = le32_to_cpu(ref->lnum); in ubifs_consolidate_log()