Searched refs:gc_lnum (Results 1 - 16 of 16) sorted by relevance

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/ubifs/
H A Dgc.c78 * @c->gc_lnum. Returns %0 in case of success, %-EAGAIN if commit is required,
83 int err, gc_lnum = c->gc_lnum; local
86 ubifs_assert(gc_lnum != -1);
88 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum,
97 * 'c->gc_lnum'.
99 err = ubifs_leb_unmap(c, gc_lnum);
103 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0);
107 c->gc_lnum = -1;
108 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum,
[all...]
H A Dmaster.c138 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) {
286 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum);
H A Dsuper.c751 if (c->gc_lnum == -1) {
757 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0,
1325 err = ubifs_leb_unmap(c, c->gc_lnum);
1417 dbg_msg("reserved GC LEB: %d", c->gc_lnum);
1633 err = ubifs_leb_unmap(c, c->gc_lnum);
1696 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum);
1767 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum);
H A Drecovery.c1032 * start garbage collection. The LEB number is recorded in c->gc_lnum and is
1034 * the value of gc_lnum recorded in the master node is out of date and cannot
1051 c->gc_lnum = -1;
1096 c->gc_lnum = lnum;
1146 err = ubifs_leb_unmap(c, c->gc_lnum);
1155 * small, or there are not dirty LEBs. Allocate gc_lnum by calling
1168 c->gc_lnum = lnum;
H A Dubifs-media.h659 * @gc_lnum: LEB reserved for garbage collection (%-1 value means the LEB was
692 __le32 gc_lnum; member in struct:ubifs_mst_node
H A Dsb.c219 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB);
H A Ddebug.c377 le32_to_cpu(mst->gc_lnum));
632 c->gc_lnum, c->ihead_lnum);
743 if (lp->lnum == c->gc_lnum)
H A Dubifs.h501 * needed to account correctly for @gc_lnum, otherwise @empty_lebs could be
503 * case of @gc_lnum, it is "taken" at mount time or whenever a LEB is retained
506 * @gc_lnum must be specially accounted for, or the current approach followed
1099 * @gc_lnum: LEB number used for garbage collection
1330 int gc_lnum; member in struct:ubifs_info
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/ubifs/
H A Dgc.c78 * @c->gc_lnum. Returns %0 in case of success, %-EAGAIN if commit is required,
83 int err, gc_lnum = c->gc_lnum; local
86 ubifs_assert(gc_lnum != -1);
88 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum,
97 * 'c->gc_lnum'.
99 err = ubifs_leb_unmap(c, gc_lnum);
103 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0);
107 c->gc_lnum = -1;
108 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum,
[all...]
H A Dmaster.c138 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) {
286 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum);
H A Dsuper.c751 if (c->gc_lnum == -1) {
757 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0,
1325 err = ubifs_leb_unmap(c, c->gc_lnum);
1417 dbg_msg("reserved GC LEB: %d", c->gc_lnum);
1633 err = ubifs_leb_unmap(c, c->gc_lnum);
1696 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum);
1767 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum);
H A Drecovery.c1032 * start garbage collection. The LEB number is recorded in c->gc_lnum and is
1034 * the value of gc_lnum recorded in the master node is out of date and cannot
1051 c->gc_lnum = -1;
1096 c->gc_lnum = lnum;
1146 err = ubifs_leb_unmap(c, c->gc_lnum);
1155 * small, or there are not dirty LEBs. Allocate gc_lnum by calling
1168 c->gc_lnum = lnum;
H A Dubifs-media.h659 * @gc_lnum: LEB reserved for garbage collection (%-1 value means the LEB was
692 __le32 gc_lnum; member in struct:ubifs_mst_node
H A Dsb.c219 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB);
H A Ddebug.c377 le32_to_cpu(mst->gc_lnum));
632 c->gc_lnum, c->ihead_lnum);
743 if (lp->lnum == c->gc_lnum)
H A Dubifs.h501 * needed to account correctly for @gc_lnum, otherwise @empty_lebs could be
503 * case of @gc_lnum, it is "taken" at mount time or whenever a LEB is retained
506 * @gc_lnum must be specially accounted for, or the current approach followed
1099 * @gc_lnum: LEB number used for garbage collection
1330 int gc_lnum; member in struct:ubifs_info

Completed in 229 milliseconds