• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/ubifs/

Lines Matching defs:bud

60  * @free: amount of free space in a bud
61 * @dirty: amount of dirty space in a bud from padding and deletion nodes
89 * @list: next bud in the list
90 * @bud: bud description object
91 * @free: free bytes in the bud
96 struct ubifs_bud *bud;
102 * set_bud_lprops - set free and dirty space used by a bud.
104 * @r: replay entry of bud
139 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", r->lnum,
141 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", r->lnum,
485 * replay_bud - replay a bud logical eraseblock.
487 * @lnum: bud logical eraseblock number to replay
488 * @offs: bud start offset
489 * @jhead: journal head to which this bud belongs
490 * @free: amount of free space in the bud is returned here
503 struct ubifs_bud *bud;
505 dbg_mnt("replay bud LEB %d, head %d", lnum, jhead);
514 * The bud does not have to start from offset zero - the beginning of
525 * 'sleb->endpt' is used by bud data. We have to correctly calculate
614 ubifs_err("unexpected node type %d in bud LEB %d:%d",
623 bud = ubifs_search_bud(c, lnum);
624 if (!bud)
655 * @free: amount of free space in bud
711 err = replay_bud(c, b->bud->lnum, b->bud->start, b->bud->jhead,
715 err = insert_ref_node(c, b->bud->lnum, b->bud->start, b->sqnum,
740 * add_replay_bud - add a bud to the list of buds to replay.
742 * @lnum: bud logical eraseblock number to replay
743 * @offs: bud start offset
744 * @jhead: journal head to which this bud belongs
753 struct ubifs_bud *bud;
756 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead);
758 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL);
759 if (!bud)
764 kfree(bud);
768 bud->lnum = lnum;
769 bud->start = offs;
770 bud->jhead = jhead;
771 ubifs_add_bud(c, bud);
773 b->bud = bud;
787 * This function returns %1 if a bud reference already exists for the LEB. %0 is
793 struct ubifs_bud *bud;
808 /* Make sure we have not already looked at this bud */
809 bud = ubifs_search_bud(c, lnum);
810 if (bud) {
811 if (bud->jhead == jhead && bud->start <= offs)
813 ubifs_err("bud at LEB %d:%d was already referred", lnum, offs);
924 break; /* Already have this bud */