Home
last modified time | relevance | path

Searched refs:segno (Results 1 – 19 of 19) sorted by relevance

/linux/fs/f2fs/
H A Dsegment.h24 #define GET_L2R_SEGNO(free_i, segno) ((segno) - (free_i)->start_segno) argument
25 #define GET_R2L_SEGNO(free_i, segno) ((segno) + (free_i)->start_segno) argument
57 #define START_BLOCK(sbi, segno) (SEG0_BLKADDR(sbi) + \ argument
58 (SEGS_TO_BLKS(sbi, GET_R2L_SEGNO(FREE_I(sbi), segno))))
61 (START_BLOCK(sbi, (curseg)->segno) + (curseg)->next_blkoff)
83 #define GET_START_SEG_FROM_SEC(sbi, segno) \ argument
84 (rounddown(segno, SEGS_PER_SEC(sbi)))
85 #define GET_SEC_FROM_SEG(sbi, segno) \ argument
86 (((segno) == -1) ? -1 : (segno) / SEGS_PER_SEC(sbi))
91 #define GET_ZONE_FROM_SEG(sbi, segno) \ argument
[all …]
H A Dsegment.c817 static void __locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, in __locate_dirty_segment() argument
823 if (is_curseg(sbi, segno)) in __locate_dirty_segment()
826 if (!test_and_set_bit(segno, dirty_i->dirty_segmap[dirty_type])) in __locate_dirty_segment()
830 struct seg_entry *sentry = get_seg_entry(sbi, segno); in __locate_dirty_segment()
837 if (!test_and_set_bit(segno, dirty_i->dirty_segmap[t])) in __locate_dirty_segment()
841 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __locate_dirty_segment()
843 get_valid_blocks(sbi, segno, true); in __locate_dirty_segment()
856 static void __remove_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, in __remove_dirty_segment() argument
862 if (test_and_clear_bit(segno, dirty_i->dirty_segmap[dirty_type])) in __remove_dirty_segment()
866 struct seg_entry *sentry = get_seg_entry(sbi, segno); in __remove_dirty_segment()
[all …]
H A Dgc.c362 static unsigned int get_cb_cost(struct f2fs_sb_info *sbi, unsigned int segno) in get_cb_cost() argument
371 mtime = f2fs_get_section_mtime(sbi, segno); in get_cb_cost()
373 vblocks = get_valid_blocks(sbi, segno, true); in get_cb_cost()
391 unsigned int segno, struct victim_sel_policy *p, in get_gc_cost() argument
395 return get_seg_entry(sbi, segno)->ckpt_valid_blocks; in get_gc_cost()
398 (get_valid_blocks(sbi, segno, true) >= in get_gc_cost()
404 return get_valid_blocks(sbi, segno, true); in get_gc_cost()
406 return get_cb_cost(sbi, segno); in get_gc_cost()
470 unsigned long long mtime, unsigned int segno) in __create_victim_entry() argument
478 ve->segno = segno; in __create_victim_entry()
[all …]
H A Drecovery.c518 unsigned int segno = GET_SEGNO(sbi, blkaddr); in check_index_in_prev_nodes() local
530 sentry = get_seg_entry(sbi, segno); in check_index_in_prev_nodes()
538 if (curseg->segno == segno) { in check_index_in_prev_nodes()
544 sum_folio = f2fs_get_sum_folio(sbi, segno); in check_index_in_prev_nodes()
547 sum_node = SUM_BLK_PAGE_ADDR(sbi, sum_folio, segno); in check_index_in_prev_nodes()
H A Ddebug.c37 unsigned int segno, vblocks; in f2fs_update_sit_info() local
44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in f2fs_update_sit_info()
45 vblocks = get_valid_blocks(sbi, segno, true); in f2fs_update_sit_info()
255 si->curseg[i] = curseg->segno; in update_general_status()
256 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
H A Dgc.h58 unsigned int segno; /* segment No. */ member
H A Dcheckpoint.c339 unsigned int segno, offset; in __is_bitmap_valid() local
345 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid()
347 se = get_seg_entry(sbi, segno); in __is_bitmap_valid()
1806 ckpt->cur_node_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint()
1813 ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint()
H A Df2fs.h572 (((struct sit_journal_entry *)(jnl)->sit_j.entries)[i].segno)
4041 unsigned int segno, struct f2fs_summary_block *sum);
4076 bool f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno);
4089 struct folio *f2fs_get_sum_folio(struct f2fs_sb_info *sbi, unsigned int segno);
4139 unsigned int segno);
4141 unsigned int segno);
H A Dnode.c2999 unsigned int segno, struct f2fs_summary_block *sum) in f2fs_restore_node_summary() argument
3008 addr = START_BLOCK(sbi, segno); in f2fs_restore_node_summary()
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c557 u32 *remaining, unsigned int segno) in svc_rdma_encode_write_segment() argument
559 const struct svc_rdma_segment *segment = &chunk->ch_segments[segno]; in svc_rdma_encode_write_segment()
572 trace_svcrdma_encode_wseg(sctxt, segno, segment->rs_handle, length, in svc_rdma_encode_write_segment()
595 unsigned int segno; in svc_rdma_encode_write_chunk() local
609 for (segno = 0; segno < chunk->ch_segcount; segno++) { in svc_rdma_encode_write_chunk()
610 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno); in svc_rdma_encode_write_chunk()
/linux/include/trace/events/
H A Drpcrdma.h1646 u32 segno,
1652 TP_ARGS(ctxt, segno, handle, length, offset),
1657 __field(u32, segno)
1666 __entry->segno = segno;
1674 __entry->segno, __entry->length,
1691 __field(u32, segno)
1701 __entry->segno = chunk->ch_segcount;
1710 __entry->segno, __entry->position, __entry->length,
1719 u32 segno
1722 TP_ARGS(cid, chunk, segno),
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c258 int segno, i; in pnv_ioda_reserve_dev_m64_pe() local
269 for (segno = start / sgsz; segno < end / sgsz; segno++) { in pnv_ioda_reserve_dev_m64_pe()
271 set_bit(segno, pe_bitmap); in pnv_ioda_reserve_dev_m64_pe()
273 pnv_ioda_reserve_pe(phb, segno); in pnv_ioda_reserve_dev_m64_pe()
2494 unsigned int segno; in pnv_pci_init_ioda_phb() local
2583 for (segno = 0; segno < ARRAY_SIZE(phb->ioda.pe_rmap); segno++) in pnv_pci_init_ioda_phb()
2584 phb->ioda.pe_rmap[segno] = IODA_INVALID_PE; in pnv_pci_init_ioda_phb()
2615 for (segno = 0; segno < phb->ioda.total_pe_num; segno++) { in pnv_pci_init_ioda_phb()
2616 phb->ioda.m64_segmap[segno] = IODA_INVALID_PE; in pnv_pci_init_ioda_phb()
2617 phb->ioda.m32_segmap[segno] = IODA_INVALID_PE; in pnv_pci_init_ioda_phb()
/linux/Documentation/translations/it_IT/doc-guide/
H A Dcontributing.rst308 il che è un segno di speranza. Se uno sviluppatore adeguatamente motivato lo
/linux/Documentation/translations/it_IT/process/
H A Dmanagement-style.rst132 Questo può suonare come un fallimento, ma di solito questo è un segno che
H A Dcoding-style.rst412 con segno, identici ai tipi standard, sono permessi- tuttavia, non sono
H A Dsubmitting-patches.rst92 essere lunga, potrebbe essere un segno che la vostra patch necessita d'essere
/linux/Documentation/translations/it_IT/RCU/
H A Dtorture.rst58 un brutto segno se questo numero rappresenta una frazione troppo alta di
/linux/Documentation/filesystems/
H A Df2fs.rst525 -s [SIT dump segno from #1~#2 (decimal), for all 0~-1]
526 -a [SSA dump segno from #1~#2 (decimal), for all 0~-1]
/linux/Documentation/translations/it_IT/kernel-hacking/
H A Dhacking.rst569 (``include/asm/atomic.h``); questo contiene un intero con segno (minimo 32bit),