Lines Matching defs:mst
78 struct ubifs_mst_node *mst;
164 mst = kzalloc(c->mst_node_alsz, GFP_KERNEL);
170 if (!sup || !mst || !idx || !ino || !cs) {
227 mst->ch.node_type = UBIFS_MST_NODE;
228 mst->log_lnum = cpu_to_le32(UBIFS_LOG_LNUM);
229 mst->highest_inum = cpu_to_le64(UBIFS_FIRST_INO);
230 mst->cmt_no = 0;
231 mst->root_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
232 mst->root_offs = 0;
234 mst->root_len = cpu_to_le32(tmp);
235 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB);
236 mst->ihead_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
237 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size));
238 mst->index_size = cpu_to_le64(ALIGN(tmp, 8));
239 mst->lpt_lnum = cpu_to_le32(c->lpt_lnum);
240 mst->lpt_offs = cpu_to_le32(c->lpt_offs);
241 mst->nhead_lnum = cpu_to_le32(c->nhead_lnum);
242 mst->nhead_offs = cpu_to_le32(c->nhead_offs);
243 mst->ltab_lnum = cpu_to_le32(c->ltab_lnum);
244 mst->ltab_offs = cpu_to_le32(c->ltab_offs);
245 mst->lsave_lnum = cpu_to_le32(c->lsave_lnum);
246 mst->lsave_offs = cpu_to_le32(c->lsave_offs);
247 mst->lscan_lnum = cpu_to_le32(main_first);
248 mst->empty_lebs = cpu_to_le32(main_lebs - 2);
249 mst->idx_lebs = cpu_to_le32(1);
250 mst->leb_cnt = cpu_to_le32(c->leb_cnt);
251 ubifs_copy_hash(c, hash_lpt, mst->hash_lpt);
257 mst->total_free = cpu_to_le64(tmp64);
264 mst->total_dirty = cpu_to_le64(tmp64);
268 mst->total_dark = cpu_to_le64(tmp64);
270 mst->total_used = cpu_to_le64(UBIFS_INO_NODE_SZ);
340 ubifs_copy_hash(c, hash, mst->hash_root_idx);
342 err = ubifs_write_node_hmac(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM, 0,
347 err = ubifs_write_node_hmac(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM + 1,
361 kfree(mst);