• Home
  • Raw
  • Download

Lines Matching refs:lnum

284 	br->lnum = cpu_to_le32(main_first + DEFAULT_DATA_LEB);  in create_default_filesystem()
795 static int fixup_leb(struct ubifs_info *c, int lnum, int len) in fixup_leb() argument
804 dbg_mnt("unmap empty LEB %d", lnum); in fixup_leb()
805 return ubifs_leb_unmap(c, lnum); in fixup_leb()
808 dbg_mnt("fixup LEB %d, data len %d", lnum, len); in fixup_leb()
809 err = ubifs_leb_read(c, lnum, c->sbuf, 0, len, 1); in fixup_leb()
813 return ubifs_leb_change(c, lnum, c->sbuf, len); in fixup_leb()
825 int lnum, err = 0; in fixup_free_space() local
831 for (lnum = UBIFS_MST_LNUM; lnum < UBIFS_LOG_LNUM; lnum++) { in fixup_free_space()
832 err = fixup_leb(c, lnum, c->mst_offs + c->mst_node_alsz); in fixup_free_space()
838 lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in fixup_free_space()
839 while (lnum != c->ltail_lnum) { in fixup_free_space()
840 err = fixup_leb(c, lnum, 0); in fixup_free_space()
843 lnum = ubifs_next_log_lnum(c, lnum); in fixup_free_space()
856 for (lnum = c->lpt_first; lnum <= c->lpt_last; lnum++) { in fixup_free_space()
857 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space()
860 err = fixup_leb(c, lnum, c->leb_size - free); in fixup_free_space()
867 for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) { in fixup_free_space()
868 err = fixup_leb(c, lnum, 0); in fixup_free_space()
874 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in fixup_free_space()
875 lprops = ubifs_lpt_lookup(c, lnum); in fixup_free_space()
882 err = fixup_leb(c, lnum, c->leb_size - lprops->free); in fixup_free_space()