Lines Matching refs:journal
1457 struct f2fs_journal *journal = &sum->journal; in f2fs_early_init_nid_bitmap() local
1471 if (nats_in_cursum(journal) > NAT_JOURNAL_ENTRIES) { in f2fs_early_init_nid_bitmap()
1474 nats_in_cursum(journal), NAT_JOURNAL_ENTRIES); in f2fs_early_init_nid_bitmap()
1475 journal->n_nats = cpu_to_le16(NAT_JOURNAL_ENTRIES); in f2fs_early_init_nid_bitmap()
1479 for (i = 0; i < nats_in_cursum(journal); i++) { in f2fs_early_init_nid_bitmap()
1482 addr = le32_to_cpu(nat_in_journal(journal, i).block_addr); in f2fs_early_init_nid_bitmap()
1485 journal->n_nats = cpu_to_le16(i); in f2fs_early_init_nid_bitmap()
1490 nid = le32_to_cpu(nid_in_journal(journal, i)); in f2fs_early_init_nid_bitmap()
1493 journal->n_nats = cpu_to_le16(i); in f2fs_early_init_nid_bitmap()
1641 struct f2fs_journal *journal = &curseg->sum_blk->journal; in check_nat_bits() local
1660 if (*(__le64 *)nat_bits != get_cp_crc(cp) || nats_in_cursum(journal)) { in check_nat_bits()
1870 memcpy(&curseg->sum_blk->journal.n_nats, kaddr, SUM_JOURNAL_SIZE); in read_compacted_summaries()
1873 memcpy(&curseg->sum_blk->journal.n_sits, kaddr + SUM_JOURNAL_SIZE, in read_compacted_summaries()
2387 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_sit_entries() local
2423 if (sits_in_cursum(journal) > SIT_JOURNAL_ENTRIES) { in build_sit_entries()
2426 sits_in_cursum(journal), SIT_JOURNAL_ENTRIES); in build_sit_entries()
2427 journal->n_sits = cpu_to_le16(SIT_JOURNAL_ENTRIES); in build_sit_entries()
2431 for (i = 0; i < sits_in_cursum(journal); i++) { in build_sit_entries()
2432 segno = le32_to_cpu(segno_in_journal(journal, i)); in build_sit_entries()
2436 journal->n_sits = cpu_to_le16(i); in build_sit_entries()
2442 sit = sit_in_journal(journal, i); in build_sit_entries()
2553 sum->journal.n_sits = 0; in rewrite_sit_area_bitmap()
2594 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_sit_journal_entries() local
2602 for (i = 0; i < sits_in_cursum(journal); i++) { in flush_sit_journal_entries()
2606 segno = segno_in_journal(journal, i); in flush_sit_journal_entries()
2621 journal->n_sits = 0; in flush_sit_journal_entries()
2628 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_nat_journal_entries() local
2639 if (i >= nats_in_cursum(journal)) { in flush_nat_journal_entries()
2641 journal->n_nats = 0; in flush_nat_journal_entries()
2645 nid = le32_to_cpu(nid_in_journal(journal, i)); in flush_nat_journal_entries()
2653 memcpy(&nat_block->entries[entry_off], &nat_in_journal(journal, i), in flush_nat_journal_entries()
2921 CURSEG_I(sbi, i)->sum_blk->journal.n_nats = 0; in zero_journal_entries()
2949 struct f2fs_journal *journal = &curseg->sum_blk->journal; in lookup_nat_in_journal() local
2952 for (i = 0; i < nats_in_cursum(journal); i++) { in lookup_nat_in_journal()
2953 if (le32_to_cpu(nid_in_journal(journal, i)) == nid) { in lookup_nat_in_journal()
2954 memcpy(raw_nat, &nat_in_journal(journal, i), in lookup_nat_in_journal()
2966 struct f2fs_journal *journal = &curseg->sum_blk->journal; in nullify_nat_entry() local
2974 for (i = 0; i < nats_in_cursum(journal); i++) { in nullify_nat_entry()
2975 if (le32_to_cpu(nid_in_journal(journal, i)) == nid) { in nullify_nat_entry()
2976 memset(&nat_in_journal(journal, i), 0, in nullify_nat_entry()
3151 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_nat_area_bitmap() local
3244 for (i = 0; i < nats_in_cursum(journal); i++) { in build_nat_area_bitmap()
3246 nid = le32_to_cpu(nid_in_journal(journal, i)); in build_nat_area_bitmap()
3260 memcpy(&raw_nat, &nat_in_journal(journal, i), in build_nat_area_bitmap()