Lines Matching defs:mst
76 struct ubifs_mst_node *mst;
207 mst = kzalloc(c->mst_node_alsz, GFP_KERNEL);
208 if (!mst)
211 mst->ch.node_type = UBIFS_MST_NODE;
212 mst->log_lnum = cpu_to_le32(UBIFS_LOG_LNUM);
213 mst->highest_inum = cpu_to_le64(UBIFS_FIRST_INO);
214 mst->cmt_no = 0;
215 mst->root_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
216 mst->root_offs = 0;
218 mst->root_len = cpu_to_le32(tmp);
219 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB);
220 mst->ihead_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB);
221 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size));
222 mst->index_size = cpu_to_le64(ALIGN(tmp, 8));
223 mst->lpt_lnum = cpu_to_le32(c->lpt_lnum);
224 mst->lpt_offs = cpu_to_le32(c->lpt_offs);
225 mst->nhead_lnum = cpu_to_le32(c->nhead_lnum);
226 mst->nhead_offs = cpu_to_le32(c->nhead_offs);
227 mst->ltab_lnum = cpu_to_le32(c->ltab_lnum);
228 mst->ltab_offs = cpu_to_le32(c->ltab_offs);
229 mst->lsave_lnum = cpu_to_le32(c->lsave_lnum);
230 mst->lsave_offs = cpu_to_le32(c->lsave_offs);
231 mst->lscan_lnum = cpu_to_le32(main_first);
232 mst->empty_lebs = cpu_to_le32(main_lebs - 2);
233 mst->idx_lebs = cpu_to_le32(1);
234 mst->leb_cnt = cpu_to_le32(c->leb_cnt);
240 mst->total_free = cpu_to_le64(tmp64);
247 mst->total_dirty = cpu_to_le64(tmp64);
251 mst->total_dark = cpu_to_le64(tmp64);
253 mst->total_used = cpu_to_le64(UBIFS_INO_NODE_SZ);
255 err = ubifs_write_node(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM, 0,
258 kfree(mst);
261 err = ubifs_write_node(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM + 1, 0,
263 kfree(mst);