• Home
  • Raw
  • Download

Lines Matching refs:mst

73 	struct ubifs_mst_node *mst;  in create_default_filesystem()  local
202 mst = kzalloc(c->mst_node_alsz, GFP_KERNEL); in create_default_filesystem()
203 if (!mst) in create_default_filesystem()
206 mst->ch.node_type = UBIFS_MST_NODE; in create_default_filesystem()
207 mst->log_lnum = cpu_to_le32(UBIFS_LOG_LNUM); in create_default_filesystem()
208 mst->highest_inum = cpu_to_le64(UBIFS_FIRST_INO); in create_default_filesystem()
209 mst->cmt_no = 0; in create_default_filesystem()
210 mst->root_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB); in create_default_filesystem()
211 mst->root_offs = 0; in create_default_filesystem()
213 mst->root_len = cpu_to_le32(tmp); in create_default_filesystem()
214 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB); in create_default_filesystem()
215 mst->ihead_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB); in create_default_filesystem()
216 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
217 mst->index_size = cpu_to_le64(ALIGN(tmp, 8)); in create_default_filesystem()
218 mst->lpt_lnum = cpu_to_le32(c->lpt_lnum); in create_default_filesystem()
219 mst->lpt_offs = cpu_to_le32(c->lpt_offs); in create_default_filesystem()
220 mst->nhead_lnum = cpu_to_le32(c->nhead_lnum); in create_default_filesystem()
221 mst->nhead_offs = cpu_to_le32(c->nhead_offs); in create_default_filesystem()
222 mst->ltab_lnum = cpu_to_le32(c->ltab_lnum); in create_default_filesystem()
223 mst->ltab_offs = cpu_to_le32(c->ltab_offs); in create_default_filesystem()
224 mst->lsave_lnum = cpu_to_le32(c->lsave_lnum); in create_default_filesystem()
225 mst->lsave_offs = cpu_to_le32(c->lsave_offs); in create_default_filesystem()
226 mst->lscan_lnum = cpu_to_le32(main_first); in create_default_filesystem()
227 mst->empty_lebs = cpu_to_le32(main_lebs - 2); in create_default_filesystem()
228 mst->idx_lebs = cpu_to_le32(1); in create_default_filesystem()
229 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
235 mst->total_free = cpu_to_le64(tmp64); in create_default_filesystem()
242 mst->total_dirty = cpu_to_le64(tmp64); in create_default_filesystem()
246 mst->total_dark = cpu_to_le64(tmp64); in create_default_filesystem()
248 mst->total_used = cpu_to_le64(UBIFS_INO_NODE_SZ); in create_default_filesystem()
250 err = ubifs_write_node(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM, 0); in create_default_filesystem()
252 kfree(mst); in create_default_filesystem()
255 err = ubifs_write_node(c, mst, UBIFS_MST_NODE_SZ, UBIFS_MST_LNUM + 1, in create_default_filesystem()
257 kfree(mst); in create_default_filesystem()