Lines Matching defs:mst
75 struct ubifs_mst_node *mst;
161 mst = kzalloc(c->mst_node_alsz, GFP_KERNEL);
167 if (!sup || !mst || !idx || !ino || !cs) {
224 mst->ch.node_type = UBIFS_MST_NODE;
225 mst->log_lnum = cpu_to_le32(UBIFS_LOG_LNUM);
226 mst->highest_inum = cpu_to_le64(UBIFS_FIRST_INO);
227 mst->cmt_no = 0;
228 mst->root_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
229 mst->root_offs = 0;
231 mst->root_len = cpu_to_le32(tmp);
232 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB);
233 mst->ihead_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
234 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size));
235 mst->index_size = cpu_to_le64(ALIGN(tmp, 8));
236 mst->lpt_lnum = cpu_to_le32(c->lpt_lnum);
237 mst->lpt_offs = cpu_to_le32(c->lpt_offs);
238 mst->nhead_lnum = cpu_to_le32(c->nhead_lnum);
239 mst->nhead_offs = cpu_to_le32(c->nhead_offs);
240 mst->ltab_lnum = cpu_to_le32(c->ltab_lnum);
241 mst->ltab_offs = cpu_to_le32(c->ltab_offs);
242 mst->lsave_lnum = cpu_to_le32(c->lsave_lnum);
243 mst->lsave_offs = cpu_to_le32(c->lsave_offs);
244 mst->lscan_lnum = cpu_to_le32(main_first);
245 mst->empty_lebs = cpu_to_le32(main_lebs - 2);
246 mst->idx_lebs = cpu_to_le32(1);
247 mst->leb_cnt = cpu_to_le32(c->leb_cnt);
248 ubifs_copy_hash(c, hash_lpt, mst->hash_lpt);
254 mst->total_free = cpu_to_le64(tmp64);
261 mst->total_dirty = cpu_to_le64(tmp64);
265 mst->total_dark = cpu_to_le64(tmp64);
267 mst->total_used = cpu_to_le64(UBIFS_INO_NODE_SZ);
337 ubifs_copy_hash(c, hash, mst->hash_root_idx);
339 err = ubifs_write_node_hmac(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM, 0,
344 err = ubifs_write_node_hmac(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM + 1,
358 kfree(mst);