Searched refs:leb_cnt (Results 1 - 25 of 28) sorted by relevance

12

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/ubifs/
H A Dsb.c95 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT)
97 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100;
99 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT;
116 if (c->leb_cnt - min_leb_cnt > 8) {
134 if (c->leb_cnt - min_leb_cnt > 1)
143 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs;
148 c->max_leb_cnt = c->leb_cnt;
157 main_first = c->leb_cnt - main_lebs;
174 sup->leb_cnt = cpu_to_le32(c->leb_cnt);
[all...]
H A Dmaster.c126 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first ||
138 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) {
143 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first ||
183 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) {
301 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt);
313 if (old_leb_cnt != c->leb_cnt) {
315 int growth = c->leb_cnt - old_leb_cnt;
317 if (c->leb_cnt < old_leb_cnt ||
318 c->leb_cnt < UBIFS_MIN_LEB_CNT) {
319 ubifs_err("bad leb_cnt o
[all...]
H A Dubifs-media.h600 * @leb_cnt: count of LEBs used by file-system
628 __le32 leb_cnt; member in struct:ubifs_sb_node
680 * @leb_cnt: count of LEBs used by file-system
712 __le32 leb_cnt; member in struct:ubifs_mst_node
H A Dio.c104 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
408 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt);
517 ubifs_assert(len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt);
664 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
706 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
785 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
H A Dtnc_commit.c691 int i, leb_cnt, lnum; local
695 leb_cnt = get_leb_cnt(c, cnt);
696 dbg_cmt("need about %d empty LEBS for TNC commit", leb_cnt);
697 if (!leb_cnt)
699 c->ilebs = kmalloc(leb_cnt * sizeof(int), GFP_NOFS);
702 for (i = 0; i < leb_cnt; i++) {
H A Dsuper.c505 c->leb_cnt = c->vi.size;
517 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) {
519 c->leb_cnt, UBIFS_MIN_LEB_CNT);
886 for (lnum = 0; lnum < c->leb_cnt; lnum++) {
1411 c->main_lebs, c->main_first, c->leb_cnt - 1);
1544 if (c->old_leb_cnt != c->leb_cnt) {
1552 sup->leb_cnt = cpu_to_le32(c->leb_cnt);
H A Dfind.c186 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
465 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
645 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
865 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
H A Dlpt.c63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt;
629 c->main_first = c->leb_cnt - *main_lebs;
1079 if (lnum < c->main_first || lnum >= c->leb_cnt)
1181 if (lnum >= c->leb_cnt)
1371 if (lnum >= c->leb_cnt)
1921 if (start_lnum >= c->leb_cnt)
1925 ubifs_assert(start_lnum >= c->main_first && start_lnum < c->leb_cnt);
1926 ubifs_assert(end_lnum >= c->main_first && end_lnum < c->leb_cnt);
2034 if (lnum + 1 >= c->leb_cnt) {
2106 if (lnum >= c->leb_cnt)
[all...]
H A Dtnc_misc.c317 zbr->lnum >= c->leb_cnt || zbr->offs < 0 ||
H A Ddebug.c325 le32_to_cpu(sup->leb_cnt));
403 le32_to_cpu(mst->leb_cnt));
759 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
H A Dlprops.c1286 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1,
H A Dreplay.c803 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt ||
H A Dubifs.h1027 * @leb_cnt: count of logical eraseblocks
1268 int leb_cnt; 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 Dsb.c95 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT)
97 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100;
99 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT;
116 if (c->leb_cnt - min_leb_cnt > 8) {
134 if (c->leb_cnt - min_leb_cnt > 1)
143 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs;
148 c->max_leb_cnt = c->leb_cnt;
157 main_first = c->leb_cnt - main_lebs;
174 sup->leb_cnt = cpu_to_le32(c->leb_cnt);
[all...]
H A Dmaster.c126 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first ||
138 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) {
143 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first ||
183 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) {
301 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt);
313 if (old_leb_cnt != c->leb_cnt) {
315 int growth = c->leb_cnt - old_leb_cnt;
317 if (c->leb_cnt < old_leb_cnt ||
318 c->leb_cnt < UBIFS_MIN_LEB_CNT) {
319 ubifs_err("bad leb_cnt o
[all...]
H A Dubifs-media.h600 * @leb_cnt: count of LEBs used by file-system
628 __le32 leb_cnt; member in struct:ubifs_sb_node
680 * @leb_cnt: count of LEBs used by file-system
712 __le32 leb_cnt; member in struct:ubifs_mst_node
H A Dio.c104 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
408 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt);
517 ubifs_assert(len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt);
664 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
706 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
785 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
H A Dtnc_commit.c691 int i, leb_cnt, lnum; local
695 leb_cnt = get_leb_cnt(c, cnt);
696 dbg_cmt("need about %d empty LEBS for TNC commit", leb_cnt);
697 if (!leb_cnt)
699 c->ilebs = kmalloc(leb_cnt * sizeof(int), GFP_NOFS);
702 for (i = 0; i < leb_cnt; i++) {
H A Dsuper.c505 c->leb_cnt = c->vi.size;
517 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) {
519 c->leb_cnt, UBIFS_MIN_LEB_CNT);
886 for (lnum = 0; lnum < c->leb_cnt; lnum++) {
1411 c->main_lebs, c->main_first, c->leb_cnt - 1);
1544 if (c->old_leb_cnt != c->leb_cnt) {
1552 sup->leb_cnt = cpu_to_le32(c->leb_cnt);
H A Dfind.c186 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
465 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
645 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
865 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt);
H A Dlpt.c63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt;
629 c->main_first = c->leb_cnt - *main_lebs;
1079 if (lnum < c->main_first || lnum >= c->leb_cnt)
1181 if (lnum >= c->leb_cnt)
1371 if (lnum >= c->leb_cnt)
1921 if (start_lnum >= c->leb_cnt)
1925 ubifs_assert(start_lnum >= c->main_first && start_lnum < c->leb_cnt);
1926 ubifs_assert(end_lnum >= c->main_first && end_lnum < c->leb_cnt);
2034 if (lnum + 1 >= c->leb_cnt) {
2106 if (lnum >= c->leb_cnt)
[all...]
H A Dtnc_misc.c317 zbr->lnum >= c->leb_cnt || zbr->offs < 0 ||
H A Ddebug.c325 le32_to_cpu(sup->leb_cnt));
403 le32_to_cpu(mst->leb_cnt));
759 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
H A Dlprops.c1286 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1,
H A Dreplay.c803 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt ||

Completed in 195 milliseconds

12