/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | gc.c | 62 * @c->gc_lnum. Returns %0 in case of success, %-EAGAIN if commit is required, 67 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local 70 ubifs_assert(c, gc_lnum != -1); in switch_gc_head() 72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head() 81 * 'c->gc_lnum'. in switch_gc_head() 83 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head() 87 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head() 91 c->gc_lnum = -1; in switch_gc_head() 92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, in switch_gc_head() [all...] |
H A D | master.c | 211 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master() 359 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
|
H A D | super.c | 804 if (c->gc_lnum == -1) { in take_gc_lnum() 810 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0, in take_gc_lnum() 1505 err = ubifs_leb_unmap(c, c->gc_lnum); in mount_ubifs() 1592 dbg_gen("reserved GC LEB: %d", c->gc_lnum); in mount_ubifs() 1829 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_remount_rw() 1905 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_remount_ro() 1980 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_put_super()
|
H A D | ubifs-media.h | 695 * @gc_lnum: LEB reserved for garbage collection (%-1 value means the LEB was 731 __le32 gc_lnum; member
|
H A D | recovery.c | 737 * the current GC head LEB). The @c->gc_lnum is -1, which means in ubifs_recover_leb() 1098 * LEB to be used as GC LEB (@c->gc_lnum), and then runs the commit. Returns 1109 * @c->gc_lnum just before the power cut happened. During the regular in grab_empty_leb() 1110 * UBIFS operation (not now) @c->gc_lnum is marked as "taken", so no in grab_empty_leb() 1134 c->gc_lnum = lnum; in grab_empty_leb() 1145 * start garbage collection. The LEB number is recorded in c->gc_lnum and is 1147 * the value of gc_lnum recorded in the master node is out of date and cannot 1166 c->gc_lnum = -1; in ubifs_rcvry_gc_commit() 1212 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_rcvry_gc_commit()
|
H A D | debug.c | 400 pr_err("\tgc_lnum %u\n", le32_to_cpu(mst->gc_lnum)); in ubifs_dump_node() 649 pr_err("\tgc_lnum %d, ihead_lnum %d\n", c->gc_lnum, c->ihead_lnum); in ubifs_dump_budg() 766 if (lp->lnum == c->gc_lnum) in ubifs_dump_lprop()
|
H A D | sb.c | 232 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB); in create_default_filesystem()
|
H A D | ubifs.h | 516 * needed to account correctly for @gc_lnum, otherwise @empty_lebs could be 518 * case of @gc_lnum, it is "taken" at mount time or whenever a LEB is retained 521 * @gc_lnum must be specially accounted for, or the current approach followed 1162 * @gc_lnum: LEB number used for garbage collection 1407 int gc_lnum; member
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | gc.c | 62 * @c->gc_lnum. Returns %0 in case of success, %-EAGAIN if commit is required, 67 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local 70 ubifs_assert(c, gc_lnum != -1); in switch_gc_head() 72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head() 81 * 'c->gc_lnum'. in switch_gc_head() 83 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head() 87 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head() 91 c->gc_lnum = -1; in switch_gc_head() 92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, in switch_gc_head() [all...] |
H A D | master.c | 211 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master() 359 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
|
H A D | super.c | 804 if (c->gc_lnum == -1) { in take_gc_lnum() 810 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0, in take_gc_lnum() 1508 err = ubifs_leb_unmap(c, c->gc_lnum); in mount_ubifs() 1595 dbg_gen("reserved GC LEB: %d", c->gc_lnum); in mount_ubifs() 1834 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_remount_rw() 1910 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_remount_ro() 1985 c->mst_node->gc_lnum = cpu_to_le32(c->gc_lnum); in ubifs_put_super()
|
H A D | ubifs-media.h | 695 * @gc_lnum: LEB reserved for garbage collection (%-1 value means the LEB was 731 __le32 gc_lnum; member
|
H A D | recovery.c | 737 * the current GC head LEB). The @c->gc_lnum is -1, which means in ubifs_recover_leb() 1098 * LEB to be used as GC LEB (@c->gc_lnum), and then runs the commit. Returns 1109 * @c->gc_lnum just before the power cut happened. During the regular in grab_empty_leb() 1110 * UBIFS operation (not now) @c->gc_lnum is marked as "taken", so no in grab_empty_leb() 1134 c->gc_lnum = lnum; in grab_empty_leb() 1145 * start garbage collection. The LEB number is recorded in c->gc_lnum and is 1147 * the value of gc_lnum recorded in the master node is out of date and cannot 1166 c->gc_lnum = -1; in ubifs_rcvry_gc_commit() 1212 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_rcvry_gc_commit()
|
H A D | debug.c | 400 pr_err("\tgc_lnum %u\n", le32_to_cpu(mst->gc_lnum)); in ubifs_dump_node() 649 pr_err("\tgc_lnum %d, ihead_lnum %d\n", c->gc_lnum, c->ihead_lnum); in ubifs_dump_budg() 766 if (lp->lnum == c->gc_lnum) in ubifs_dump_lprop()
|
H A D | sb.c | 235 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB); in create_default_filesystem()
|
H A D | ubifs.h | 525 * needed to account correctly for @gc_lnum, otherwise @empty_lebs could be 527 * case of @gc_lnum, it is "taken" at mount time or whenever a LEB is retained 530 * @gc_lnum must be specially accounted for, or the current approach followed 1183 * @gc_lnum: LEB number used for garbage collection 1435 int gc_lnum; member
|