/linux-master/fs/f2fs/ |
H A D | segment.h | 22 #define GET_L2R_SEGNO(free_i, segno) ((segno) - (free_i)->start_segno) 23 #define GET_R2L_SEGNO(free_i, segno) ((segno) + (free_i)->start_segno) 40 (((seg) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno) || \ 41 ((seg) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno) || \ 42 ((seg) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno) || \ 43 ((seg) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno) || \ 44 ((seg) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno) || \ 45 ((seg) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno) || \ 297 unsigned int segno; /* current segment number */ member in struct:curseg_info 319 get_seg_entry(struct f2fs_sb_info *sbi, unsigned int segno) argument 326 get_sec_entry(struct f2fs_sb_info *sbi, unsigned int segno) argument 333 get_valid_blocks(struct f2fs_sb_info *sbi, unsigned int segno, bool use_section) argument 346 get_ckpt_valid_blocks(struct f2fs_sb_info *sbi, unsigned int segno, bool use_section) argument 416 find_next_inuse(struct free_segmap_info *free_i, unsigned int max, unsigned int segno) argument 426 __set_free(struct f2fs_sb_info *sbi, unsigned int segno) argument 447 __set_inuse(struct f2fs_sb_info *sbi, unsigned int segno) argument 459 __set_test_and_free(struct f2fs_sb_info *sbi, unsigned int segno, bool inmem) argument 485 __set_test_and_inuse(struct f2fs_sb_info *sbi, unsigned int segno) argument 563 unsigned segno, left_blocks; local 731 valid_main_segno(struct f2fs_sb_info *sbi, unsigned int segno) argument 751 check_block_count(struct f2fs_sb_info *sbi, int segno, struct f2fs_sit_entry *raw_sit) argument [all...] |
H A D | segment.c | 746 static void __locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, argument 752 if (IS_CURSEG(sbi, segno)) 755 if (!test_and_set_bit(segno, dirty_i->dirty_segmap[dirty_type])) 759 struct seg_entry *sentry = get_seg_entry(sbi, segno); 766 if (!test_and_set_bit(segno, dirty_i->dirty_segmap[t])) 770 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); 772 get_valid_blocks(sbi, segno, true); 783 static void __remove_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, argument 789 if (test_and_clear_bit(segno, dirty_i->dirty_segmap[dirty_type])) 793 struct seg_entry *sentry = get_seg_entry(sbi, segno); 827 locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno) argument 860 unsigned int segno; local 883 unsigned int segno; local 924 unsigned int segno = 0; local 1141 unsigned int segno; local 2138 unsigned int segno; local 2356 __mark_sit_entry_dirty(struct f2fs_sb_info *sbi, unsigned int segno) argument 2368 __set_sit_entry_type(struct f2fs_sb_info *sbi, int type, unsigned int segno, int modified) argument 2381 unsigned int segno = GET_SEGNO(sbi, blkaddr); local 2392 unsigned int segno = GET_SEGNO(sbi, blkaddr); local 2414 unsigned int segno, offset; local 2515 unsigned int segno = GET_SEGNO(sbi, addr); local 2539 unsigned int segno, offset; local 2598 f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno) argument 2650 unsigned int segno = curseg->segno + 1; local 2666 unsigned int segno, secno, zoneno; local 2819 unsigned int segno = curseg->segno; local 2843 __next_free_blkoff(struct f2fs_sb_info *sbi, int segno, block_t start) argument 2865 f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno) argument 3017 unsigned segno = NULL_SEGNO; local 3089 unsigned int segno; local 3737 unsigned int segno; local 3787 __f2fs_get_curseg(struct f2fs_sb_info *sbi, unsigned int segno) argument 3806 unsigned int segno, old_cursegno; local 3984 unsigned int segno; local 4028 unsigned int segno = 0; local 4239 get_current_sit_page(struct f2fs_sb_info *sbi, unsigned int segno) argument 4298 add_sit_entry(unsigned int segno, struct list_head *head) argument 4323 unsigned int segno; local 4337 unsigned int segno; local 4396 unsigned int segno = start_segno; local 4821 unsigned int segno = 0, offset = 0, secno; local 5236 f2fs_usable_zone_blks_in_seg( struct f2fs_sb_info *sbi, unsigned int segno) argument 5274 f2fs_usable_zone_blks_in_seg(struct f2fs_sb_info *sbi, unsigned int segno) argument 5281 f2fs_usable_blks_in_seg(struct f2fs_sb_info *sbi, unsigned int segno) argument 5290 f2fs_usable_segs_in_sec(struct f2fs_sb_info *sbi, unsigned int segno) argument 5305 unsigned int segno; local [all...] |
H A D | gc.c | 332 static unsigned int get_cb_cost(struct f2fs_sb_info *sbi, unsigned int segno) argument 335 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); 342 unsigned int usable_segs_per_sec = f2fs_usable_segs_in_sec(sbi, segno); 346 vblocks = get_valid_blocks(sbi, segno, true); 366 unsigned int segno, struct victim_sel_policy *p) 369 return get_seg_entry(sbi, segno)->ckpt_valid_blocks; 373 return get_valid_blocks(sbi, segno, true); 375 return get_cb_cost(sbi, segno); 439 unsigned long long mtime, unsigned int segno) 447 ve->segno 365 get_gc_cost(struct f2fs_sb_info *sbi, unsigned int segno, struct victim_sel_policy *p) argument 438 __create_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno) argument 455 __insert_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno) argument 484 add_victim_entry(struct f2fs_sb_info *sbi, struct victim_sel_policy *p, unsigned int segno) argument 687 f2fs_pin_section(struct f2fs_sb_info *sbi, unsigned int segno) argument 723 f2fs_gc_pinned_control(struct inode *inode, int gc_type, unsigned int segno) argument 817 unsigned int unit_no, segno; local 977 check_valid_map(struct f2fs_sb_info *sbi, unsigned int segno, int offset) argument 996 gc_node_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, unsigned int segno, int gc_type) argument 1155 unsigned int segno = GET_SEGNO(sbi, blkaddr); local 1260 move_data_block(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) argument 1417 move_data_page(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) argument 1493 gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, struct gc_inode_list *gc_list, unsigned int segno, int gc_type, bool force_migrate) argument 1674 unsigned int segno = start_segno; local 1791 unsigned int segno = gc_control->victim_segno; local 1984 unsigned int segno; local [all...] |
H A D | gc.h | 63 unsigned int segno; /* segment No. */ member in struct:victim_entry
|
H A D | debug.c | 37 unsigned int segno, vblocks; local 44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { 45 vblocks = get_valid_blocks(sbi, segno, true); 189 si->curseg[i] = curseg->segno; 190 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); 444 "segno", "secno", "zoneno", "dirty_seg", "full_seg", "valid_blk");
|
H A D | recovery.c | 498 unsigned int segno = GET_SEGNO(sbi, blkaddr); local 510 sentry = get_seg_entry(sbi, segno); 518 if (curseg->segno == segno) { 524 sum_page = f2fs_get_sum_page(sbi, segno);
|
H A D | checkpoint.c | 141 unsigned int segno, offset; local 147 segno = GET_SEGNO(sbi, blkaddr); 149 se = get_seg_entry(sbi, segno); 1488 ckpt->cur_node_segno[i] = cpu_to_le32(curseg->segno); 1495 ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno);
|
H A D | f2fs.h | 447 #define segno_in_journal(jnl, i) ((jnl)->sit_j.entries[i].segno) 3660 unsigned int segno, struct f2fs_summary_block *sum); 3693 bool f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno); 3705 struct page *f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno); 3746 unsigned int segno); 3748 unsigned int segno);
|
H A D | node.c | 2844 unsigned int segno, struct f2fs_summary_block *sum) 2853 addr = START_BLOCK(sbi, segno); 2843 f2fs_restore_node_summary(struct f2fs_sb_info *sbi, unsigned int segno, struct f2fs_summary_block *sum) argument
|
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_sendto.c | 415 * @segno: which segment in the chunk 424 u32 *remaining, unsigned int segno) 426 const struct svc_rdma_segment *segment = &chunk->ch_segments[segno]; 439 trace_svcrdma_encode_wseg(sctxt, segno, segment->rs_handle, length, 462 unsigned int segno; local 476 for (segno = 0; segno < chunk->ch_segcount; segno++) { 477 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno); 422 svc_rdma_encode_write_segment(struct svc_rdma_send_ctxt *sctxt, const struct svc_rdma_chunk *chunk, u32 *remaining, unsigned int segno) argument
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda.c | 260 int segno, i; local 271 for (segno = start / sgsz; segno < end / sgsz; segno++) { 273 set_bit(segno, pe_bitmap); 275 pnv_ioda_reserve_pe(phb, segno); 2574 unsigned int segno; local 2663 for (segno = 0; segno < ARRAY_SIZE(phb->ioda.pe_rmap); segno [all...] |
/linux-master/include/trace/events/ |
H A D | rpcrdma.h | 1623 u32 segno, 1629 TP_ARGS(ctxt, segno, handle, length, offset), 1634 __field(u32, segno) 1643 __entry->segno = segno; 1649 TP_printk("cq.id=%u cid=%d segno=%u %u@0x%016llx:0x%08x", 1651 __entry->segno, __entry->length, 1668 __field(u32, segno) 1678 __entry->segno = chunk->ch_segcount; 1685 TP_printk("cq.id=%u cid=%d segno [all...] |
/linux-master/include/linux/ |
H A D | f2fs_fs.h | 501 __le32 segno; member in struct:sit_journal_entry
|