/linux-4.4.14/fs/ubifs/ |
H A D | replay.c | 44 * @sqnum: node sequence number 60 unsigned long long sqnum; member in struct:replay_entry 76 * @sqnum: reference node sequence number 83 unsigned long long sqnum; member in struct:bud_entry 223 dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ", apply_replay_entry() 224 r->lnum, r->offs, r->len, r->deletion, r->sqnum); apply_replay_entry() 227 c->replay_sqnum = r->sqnum; apply_replay_entry() 287 ubifs_assert(ra->sqnum != rb->sqnum); replay_entries_cmp() 288 if (ra->sqnum > rb->sqnum) replay_entries_cmp() 343 * @sqnum: sequence number 357 union ubifs_key *key, unsigned long long sqnum, insert_node() 378 r->sqnum = sqnum; insert_node() 396 * @sqnum: sequence number 406 unsigned long long sqnum, int deletion, int *used) insert_dent() 431 r->sqnum = sqnum; insert_dent() 591 if (snod->sqnum >= SQNUM_WATERMARK) { replay_bud() 596 if (snod->sqnum > c->max_sqnum) replay_bud() 597 c->max_sqnum = snod->sqnum; replay_bud() 608 &snod->key, snod->sqnum, deletion, replay_bud() 620 &snod->key, snod->sqnum, deletion, replay_bud() 635 le16_to_cpu(dent->nlen), snod->sqnum, replay_bud() 660 &key, snod->sqnum, 1, &used, replay_bud() 712 ubifs_assert(b->sqnum > prev_sqnum); replay_buds() 713 prev_sqnum = b->sqnum; replay_buds() 740 * @sqnum: reference node sequence number 746 unsigned long long sqnum) add_replay_bud() 769 b->sqnum = sqnum; add_replay_bud() 876 c->cs_sqnum = le64_to_cpu(node->ch.sqnum); replay_log_leb() 877 dbg_mnt("commit start sqnum %llu", c->cs_sqnum); replay_log_leb() 880 if (snod->sqnum < c->cs_sqnum) { replay_log_leb() 901 if (snod->sqnum >= SQNUM_WATERMARK) { replay_log_leb() 906 if (snod->sqnum < c->cs_sqnum) { replay_log_leb() 907 ubifs_err(c, "bad sqnum %llu, commit sqnum %llu", replay_log_leb() 908 snod->sqnum, c->cs_sqnum); replay_log_leb() 912 if (snod->sqnum > c->max_sqnum) replay_log_leb() 913 c->max_sqnum = snod->sqnum; replay_log_leb() 928 snod->sqnum); replay_log_leb() 356 insert_node(struct ubifs_info *c, int lnum, int offs, int len, union ubifs_key *key, unsigned long long sqnum, int deletion, int *used, loff_t old_size, loff_t new_size) insert_node() argument 404 insert_dent(struct ubifs_info *c, int lnum, int offs, int len, union ubifs_key *key, const char *name, int nlen, unsigned long long sqnum, int deletion, int *used) insert_dent() argument 745 add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, unsigned long long sqnum) add_replay_bud() argument
|
H A D | commit.c | 546 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); dbg_old_index_check_init() 620 /* Check root level and sqnum */ dbg_check_old_index() 625 if (le64_to_cpu(idx->ch.sqnum) != d->old_zroot_sqnum) { dbg_check_old_index() 631 last_sqnum = le64_to_cpu(idx->ch.sqnum) + 1; dbg_check_old_index() 641 * The index is always written bottom up hence a child's sqnum dbg_check_old_index() 644 if (le64_to_cpu(idx->ch.sqnum) >= last_sqnum) { dbg_check_old_index() 695 last_sqnum = le64_to_cpu(idx->ch.sqnum); dbg_check_old_index()
|
H A D | io.c | 332 ch->sqnum = 0; ubifs_pad() 350 unsigned long long sqnum; next_sqnum() local 353 sqnum = ++c->max_sqnum; next_sqnum() 356 if (unlikely(sqnum >= SQNUM_WARN_WATERMARK)) { next_sqnum() 357 if (sqnum >= SQNUM_WATERMARK) { next_sqnum() 359 sqnum); next_sqnum() 365 return sqnum; next_sqnum() 383 unsigned long long sqnum = next_sqnum(c); ubifs_prepare_node() local 390 ch->sqnum = cpu_to_le64(sqnum); ubifs_prepare_node() 416 unsigned long long sqnum = next_sqnum(c); ubifs_prep_grp_node() local 426 ch->sqnum = cpu_to_le64(sqnum); ubifs_prep_grp_node()
|
H A D | scan.c | 205 snod->sqnum = le64_to_cpu(ch->sqnum); ubifs_add_snod()
|
H A D | debug.h | 43 * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
|
H A D | master.c | 279 c->max_sqnum = le64_to_cpu(c->mst_node->ch.sqnum); ubifs_read_master()
|
H A D | recovery.c | 349 c->max_sqnum = le64_to_cpu(mst->ch.sqnum) - 1; ubifs_recover_master_node() 842 *cs_sqnum = le64_to_cpu(cs_node->ch.sqnum); get_cs_sqnum() 843 dbg_rcvry("commit start sqnum %llu", *cs_sqnum); get_cs_sqnum() 850 ubifs_err(c, "failed to get CS sqnum"); get_cs_sqnum() 901 if (snod->sqnum > cs_sqnum) { ubifs_recover_log_leb()
|
H A D | ubifs-media.h | 422 * @sqnum: sequence number 434 __le64 sqnum; member in struct:ubifs_ch
|
H A D | file.c | 73 ubifs_assert(le64_to_cpu(dn->ch.sqnum) > read_block() 643 ubifs_assert(le64_to_cpu(dn->ch.sqnum) > populate_page()
|
H A D | dir.c | 427 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_readdir()
|
H A D | debug.c | 229 (unsigned long long)le64_to_cpu(ch->sqnum)); dump_ch() 2024 if (le64_to_cpu(ch->sqnum) > c->max_sqnum) { check_leaf()
|
H A D | ubifs.h | 300 * @sqnum: sequence number 309 unsigned long long sqnum; member in struct:ubifs_scan_node
|
/linux-4.4.14/drivers/mtd/ubi/ |
H A D | attach.c | 330 unsigned long long sqnum2 = be64_to_cpu(vid_hdr->sqnum); ubi_compare_lebs() 332 if (sqnum2 == aeb->sqnum) { ubi_compare_lebs() 346 second_is_newer = (sqnum2 > aeb->sqnum); ubi_compare_lebs() 453 unsigned long long sqnum; ubi_add_to_av() local 460 sqnum = be64_to_cpu(vid_hdr->sqnum); ubi_add_to_av() 462 dbg_bld("PEB %d, LEB %d:%d, EC %d, sqnum %llu, bitflips %d", ubi_add_to_av() 463 pnum, vol_id, lnum, ec, sqnum, bitflips); ubi_add_to_av() 469 if (ai->max_sqnum < sqnum) ubi_add_to_av() 470 ai->max_sqnum = sqnum; ubi_add_to_av() 495 dbg_bld("this LEB already exists: PEB %d, sqnum %llu, EC %d", ubi_add_to_av() 496 aeb->pnum, aeb->sqnum, aeb->ec); ubi_add_to_av() 511 if (aeb->sqnum == sqnum && sqnum != 0) { ubi_add_to_av() 513 sqnum); ubi_add_to_av() 548 aeb->sqnum = sqnum; ubi_add_to_av() 584 aeb->sqnum = sqnum; ubi_add_to_av() 812 * @sqnum: The sqnum of the found volume will be stored in this pointer 820 int pnum, int *vid, unsigned long long *sqnum) scan_peb() 996 if (sqnum) scan_peb() 997 *sqnum = be64_to_cpu(vidh->sqnum); scan_peb() 1355 unsigned long long sqnum = -1; scan_fast() local 1359 err = scan_peb(ubi, *ai, pnum, &vol_id, &sqnum); scan_fast() 1363 if (vol_id == UBI_FM_SB_VOLUME_ID && sqnum > max_sqnum) { scan_fast() 1364 max_sqnum = sqnum; scan_fast() 1656 if (aeb->sqnum != be64_to_cpu(vidh->sqnum)) { self_check_ai() 1657 ubi_err(ubi, "bad sqnum %llu", aeb->sqnum); self_check_ai() 819 scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, int *vid, unsigned long long *sqnum) scan_peb() argument
|
H A D | fastmap.c | 154 aeb->copy_flag = aeb->sqnum = 0; add_aeb() 537 new_aeb->sqnum = be64_to_cpu(vh->sqnum); scan_pool() 541 if (*max_sqnum < new_aeb->sqnum) scan_pool() 542 *max_sqnum = new_aeb->sqnum; scan_pool() 620 ai->max_sqnum = fmsb->sqnum; ubi_attach_fastmap() 872 unsigned long long sqnum = 0; ubi_scan_fastmap() local 998 if (sqnum < be64_to_cpu(vh->sqnum)) ubi_scan_fastmap() 999 sqnum = be64_to_cpu(vh->sqnum); ubi_scan_fastmap() 1025 fmsb2->sqnum = sqnum; ubi_scan_fastmap() 1142 /* the max sqnum will be filled in while *reading* the fastmap */ ubi_write_fastmap() 1143 fmsb->sqnum = 0; ubi_write_fastmap() 1279 avhdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); 1303 dvhdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); 1305 dbg_bld("writing fastmap data to PEB %i sqnum %llu", 1306 new_fm->e[i]->pnum, be64_to_cpu(dvhdr->sqnum)); 1428 vh->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); invalidate_fastmap()
|
H A D | eba.c | 62 unsigned long long sqnum; ubi_next_sqnum() local 65 sqnum = ubi->global_sqnum++; ubi_next_sqnum() 68 return sqnum; ubi_next_sqnum() 602 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); recover_peb() 719 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_write_leb() 783 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_write_leb() 836 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_write_leb_st() 905 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_write_leb_st() 957 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_atomic_leb_change() 1030 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_atomic_leb_change() 1189 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); ubi_eba_copy_leb()
|
H A D | ubi-media.h | 188 * @sqnum: sequence number 192 * The @sqnum is the value of the global sequence counter at the time when this 196 * unsigned 64-bit integer and we assume it never overflows. The @sqnum 217 * select one of them when the flash is attached. The @sqnum field says which 218 * PEB is the original (obviously P will have lower @sqnum) and the copy. But 292 __be64 sqnum; member in struct:ubi_vid_hdr 414 * @sqnum: highest sequence number value at the time while taking the fastmap 425 __be64 sqnum; member in struct:ubi_fm_sb
|
H A D | debug.c | 96 (unsigned long long)be64_to_cpu(vid_hdr->sqnum)); ubi_dump_vid_hdr() 196 pr_err("\tsqnum %llu\n", aeb->sqnum); ubi_dump_aeb()
|
H A D | ubi.h | 637 * @sqnum: sequence number 653 unsigned long long sqnum; member in struct:ubi_ainf_peb
|
H A D | vtbl.c | 324 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); create_vtbl()
|