Home
last modified time | relevance | path

Searched refs:mst_node (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/fs/ubifs/
H A Dmaster.c46 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
65 if (memcmp((void *)c->mst_node + UBIFS_CH_SZ, in scan_for_master()
237 ubifs_dump_node(c, c->mst_node); in validate_master()
253 c->mst_node = kzalloc(c->mst_node_alsz, GFP_KERNEL); in ubifs_read_master()
254 if (!c->mst_node) in ubifs_read_master()
270 c->mst_node->flags &= cpu_to_le32(~UBIFS_MST_RCVRY); in ubifs_read_master()
274 c->cmt_no = le64_to_cpu(c->mst_node->cmt_no); in ubifs_read_master()
279 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
294 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt); in ubifs_read_master()
313 ubifs_dump_node(c, c->mst_node); in ubifs_read_master()
[all …]
H A Dsuper.c1501 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in mount_ubifs()
1693 kfree(c->mst_node); in mount_ubifs()
1748 kfree(c->mst_node); in ubifs_umount()
1837 if (!(c->mst_node->flags & cpu_to_le32(UBIFS_MST_DIRTY))) { in ubifs_remount_rw()
1838 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_remount_rw()
1961 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_remount_ro()
1962 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS); in ubifs_remount_ro()
1963 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_remount_ro()
2033 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_put_super()
2034 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS); in ubifs_put_super()
[all …]
H A Drecovery.c303 memcpy(c->mst_node, mst, UBIFS_MST_NODE_SZ); in ubifs_recover_master_node()
312 memcpy(c->rcvrd_mst_node, c->mst_node, UBIFS_MST_NODE_SZ); in ubifs_recover_master_node()
338 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_recover_master_node()
343 err = write_rcvrd_mst_node(c, c->mst_node); in ubifs_recover_master_node()
387 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_write_rcvrd_mst_node()
H A Dubifs.h1893 struct ubifs_mst_node *mst_node; member
/openbmc/linux/fs/ubifs/
H A Dmaster.c107 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
135 if (ubifs_hmac_zero(c, c->mst_node->hmac)) { in scan_for_master()
136 err = mst_node_check_hash(c, c->mst_node, in scan_for_master()
141 err = ubifs_node_verify_hmac(c, c->mst_node, in scan_for_master()
317 ubifs_dump_node(c, c->mst_node, c->mst_node_alsz); in validate_master()
333 c->mst_node = kzalloc(c->mst_node_alsz, GFP_KERNEL); in ubifs_read_master()
334 if (!c->mst_node) in ubifs_read_master()
350 c->mst_node->flags &= cpu_to_le32(~UBIFS_MST_RCVRY); in ubifs_read_master()
354 c->cmt_no = le64_to_cpu(c->mst_node->cmt_no); in ubifs_read_master()
395 ubifs_dump_node(c, c->mst_node, c->mst_node_alsz); in ubifs_read_master()
[all …]
H A Dcommit.c161 c->mst_node->cmt_no = cpu_to_le64(c->cmt_no); in do_commit()
163 c->mst_node->root_lnum = cpu_to_le32(zroot.lnum); in do_commit()
164 c->mst_node->root_offs = cpu_to_le32(zroot.offs); in do_commit()
165 c->mst_node->root_len = cpu_to_le32(zroot.len); in do_commit()
166 c->mst_node->ihead_lnum = cpu_to_le32(c->ihead_lnum); in do_commit()
167 c->mst_node->ihead_offs = cpu_to_le32(c->ihead_offs); in do_commit()
169 c->mst_node->lpt_lnum = cpu_to_le32(c->lpt_lnum); in do_commit()
170 c->mst_node->lpt_offs = cpu_to_le32(c->lpt_offs); in do_commit()
173 c->mst_node->ltab_lnum = cpu_to_le32(c->ltab_lnum); in do_commit()
174 c->mst_node->ltab_offs = cpu_to_le32(c->ltab_offs); in do_commit()
[all …]
H A Dsuper.c1425 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in mount_ubifs()
1639 kfree(c->mst_node); in mount_ubifs()
1693 kfree(c->mst_node); in ubifs_umount()
1763 if (!(c->mst_node->flags & cpu_to_le32(UBIFS_MST_DIRTY))) { in ubifs_remount_rw()
1764 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_remount_rw()
1908 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_remount_ro()
1909 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS); in ubifs_remount_ro()
1910 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_remount_ro()
1983 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_put_super()
1984 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS); in ubifs_put_super()
[all …]
H A Drecovery.c300 memcpy(c->mst_node, mst, UBIFS_MST_NODE_SZ); in ubifs_recover_master_node()
309 memcpy(c->rcvrd_mst_node, c->mst_node, UBIFS_MST_NODE_SZ); in ubifs_recover_master_node()
335 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_recover_master_node()
339 err = write_rcvrd_mst_node(c, c->mst_node); in ubifs_recover_master_node()
382 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY); in ubifs_write_rcvrd_mst_node()
H A Dubifs.h1345 struct ubifs_mst_node *mst_node; member
H A Dlpt_commit.c1238 err = ubifs_lpt_calc_hash(c, c->mst_node->hash_lpt); in ubifs_lpt_start_commit()
H A Dlpt.c1760 if (ubifs_check_hash(c, c->mst_node->hash_lpt, hash)) { in lpt_check_hash()