/fs/ext4/ |
D | block_validity.c | 25 ext4_fsblk_t start_blk; member 49 if ((entry1->start_blk + entry1->count) == entry2->start_blk && in can_merge() 70 ext4_fsblk_t start_blk, in add_system_zone() argument 80 if (start_blk < entry->start_blk) in add_system_zone() 82 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone() 92 new_entry->start_blk = start_blk; in add_system_zone() 105 new_entry->start_blk = entry->start_blk; in add_system_zone() 139 entry->start_blk, entry->start_blk + entry->count - 1); in debug_print_tree() 298 ext4_fsblk_t start_blk, unsigned int count) in ext4_sb_block_valid() argument 306 if ((start_blk <= le32_to_cpu(sbi->s_es->s_first_data_block)) || in ext4_sb_block_valid() [all …]
|
D | resize.c | 306 ext4_fsblk_t start_blk; in ext4_alloc_group_tables() local 329 start_blk = ext4_group_first_block_no(sb, src_group); in ext4_alloc_group_tables() 330 last_blk = start_blk + group_data[src_group - group].blocks_count; in ext4_alloc_group_tables() 334 start_blk += overhead; in ext4_alloc_group_tables() 348 if (start_blk >= last_blk) in ext4_alloc_group_tables() 350 group_data[bb_index].block_bitmap = start_blk++; in ext4_alloc_group_tables() 351 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables() 359 if (start_blk >= last_blk) in ext4_alloc_group_tables() 361 group_data[ib_index].inode_bitmap = start_blk++; in ext4_alloc_group_tables() 362 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables() [all …]
|
D | extents.c | 5003 ext4_lblk_t start_blk, len_blks; in ext4_get_es_cache() local 5032 start_blk = start >> inode->i_sb->s_blocksize_bits; in ext4_get_es_cache() 5036 len_blks = ((ext4_lblk_t) last_blk) - start_blk + 1; in ext4_get_es_cache() 5042 return ext4_fill_es_cache_info(inode, start_blk, len_blks, fieinfo); in ext4_get_es_cache()
|
D | ext4.h | 3572 ext4_fsblk_t start_blk, 3577 ext4_fsblk_t start_blk, unsigned int count);
|
/fs/xfs/ |
D | xfs_log_recover.c | 320 xfs_daddr_t start_blk, in xlog_find_verify_cycle() argument 347 for (i = start_blk; i < start_blk + nbblks; i += bufblks) { in xlog_find_verify_cycle() 350 bcount = min(bufblks, (start_blk + nbblks - i)); in xlog_find_verify_cycle() 402 xfs_daddr_t start_blk, in xlog_find_verify_log_record() argument 412 int num_blks = *last_blk - start_blk; in xlog_find_verify_log_record() 415 ASSERT(start_blk != 0 || *last_blk != start_blk); in xlog_find_verify_log_record() 424 error = xlog_bread(log, start_blk, num_blks, buffer, &offset); in xlog_find_verify_log_record() 431 if (i < start_blk) { in xlog_find_verify_log_record() 510 xfs_daddr_t new_blk, first_blk, start_blk, last_blk, head_blk; in xlog_find_head() local 638 start_blk = head_blk - num_scan_bblks; in xlog_find_head() [all …]
|
/fs/ |
D | ioctl.c | 299 sector_t start_blk, last_blk; in __generic_block_fiemap() local 327 start_blk = logical_to_blk(inode, start); in __generic_block_fiemap() 338 ret = get_block(inode, start_blk, &map_bh, 0); in __generic_block_fiemap() 344 start_blk++; in __generic_block_fiemap() 354 blk_to_logical(inode, start_blk) >= isize) in __generic_block_fiemap() 373 if (start_blk > last_blk || past_eof || ret) in __generic_block_fiemap() 391 if (start_blk > last_blk && !whole_file) { in __generic_block_fiemap() 410 logical = blk_to_logical(inode, start_blk); in __generic_block_fiemap() 415 start_blk += logical_to_blk(inode, size); in __generic_block_fiemap()
|
/fs/f2fs/ |
D | checkpoint.c | 692 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() local 723 start_blk = __start_cp_addr(sbi) + 1 + __cp_payload(sbi); in f2fs_recover_orphan_inodes() 726 f2fs_ra_meta_pages(sbi, start_blk, orphan_blocks, META_CP, true); in f2fs_recover_orphan_inodes() 732 page = f2fs_get_meta_page(sbi, start_blk + i); in f2fs_recover_orphan_inodes() 765 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() argument 788 page = f2fs_grab_meta_page(sbi, start_blk++); in write_orphan_inodes() 1442 block_t start_blk; in do_checkpoint() local 1508 start_blk = __start_cp_next_addr(sbi); in do_checkpoint() 1518 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint() 1525 f2fs_update_meta_page(sbi, ckpt, start_blk++); in do_checkpoint() [all …]
|
D | segment.c | 1457 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd() 1837 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone() 1842 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone() 4061 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_data_summaries() argument 4064 write_compacted_summaries(sbi, start_blk); in f2fs_write_data_summaries() 4066 write_normal_summaries(sbi, start_blk, CURSEG_HOT_DATA); in f2fs_write_data_summaries() 4069 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_node_summaries() argument 4071 write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE); in f2fs_write_node_summaries() 4512 unsigned int readed, start_blk = 0; in build_sit_entries() local 4517 readed = f2fs_ra_meta_pages(sbi, start_blk, BIO_MAX_PAGES, in build_sit_entries() [all …]
|
D | data.c | 375 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device() 377 blk_addr -= FDEV(i).start_blk; in f2fs_target_device() 398 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index() 1891 sector_t start_blk, last_blk; in f2fs_fiemap() local 1936 start_blk = bytes_to_blks(inode, start); in f2fs_fiemap() 1941 map.m_lblk = start_blk; in f2fs_fiemap() 1957 start_blk = next_pgofs; in f2fs_fiemap() 1959 if (blks_to_bytes(inode, start_blk) < blks_to_bytes(inode, in f2fs_fiemap() 1987 if (start_blk > last_blk) in f2fs_fiemap() 1998 start_blk += appended_blks; in f2fs_fiemap() [all …]
|
D | super.c | 3739 FDEV(i).start_blk = 0; in f2fs_scan_devices() 3740 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices() 3745 FDEV(i).start_blk = FDEV(i - 1).end_blk + 1; in f2fs_scan_devices() 3746 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices() 3775 FDEV(i).start_blk, FDEV(i).end_blk, in f2fs_scan_devices() 3784 FDEV(i).start_blk, FDEV(i).end_blk); in f2fs_scan_devices()
|
D | f2fs.h | 1216 block_t start_blk; member 3646 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk); 3647 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk);
|
D | file.c | 2982 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device() 3940 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
|
/fs/ext2/ |
D | balloc.c | 1175 int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk, in ext2_data_block_valid() argument 1178 if ((start_blk <= le32_to_cpu(sbi->s_es->s_first_data_block)) || in ext2_data_block_valid() 1179 (start_blk + count - 1 < start_blk) || in ext2_data_block_valid() 1180 (start_blk + count - 1 >= le32_to_cpu(sbi->s_es->s_blocks_count))) in ext2_data_block_valid() 1184 if ((start_blk <= sbi->s_sb_block) && in ext2_data_block_valid() 1185 (start_blk + count - 1 >= sbi->s_sb_block)) in ext2_data_block_valid()
|
D | ext2.h | 713 extern int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
|
/fs/ocfs2/ |
D | suballoc.h | 134 u64 start_blk, 139 u64 start_blk,
|
D | alloc.h | 86 u64 start_blk, 174 u64 start_blk,
|
D | ocfs2_trace.h | 742 TP_PROTO(int count, int bit, unsigned long long start_blk, 744 TP_ARGS(count, bit, start_blk, blkno), 748 __field(unsigned long long, start_blk) 754 __entry->start_blk = start_blk; 758 __entry->count, __entry->bit, __entry->start_blk, 857 TP_PROTO(unsigned long long bg_blkno, unsigned long long start_blk, 859 TP_ARGS(bg_blkno, start_blk, start_bit, count), 862 __field(unsigned long long, start_blk) 868 __entry->start_blk = start_blk; 872 TP_printk("%llu %llu %u %u", __entry->bg_blkno, __entry->start_blk,
|
D | suballoc.c | 2545 u64 start_blk, in _ocfs2_free_clusters() argument 2559 BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, in _ocfs2_free_clusters() 2561 start_blk))); in _ocfs2_free_clusters() 2564 ocfs2_block_to_cluster_group(bitmap_inode, start_blk, &bg_blkno, in _ocfs2_free_clusters() 2568 (unsigned long long)start_blk, in _ocfs2_free_clusters() 2589 u64 start_blk, in ocfs2_free_clusters() argument 2593 start_blk, num_clusters, in ocfs2_free_clusters() 2604 u64 start_blk, in ocfs2_release_clusters() argument 2608 start_blk, num_clusters, in ocfs2_release_clusters()
|
D | alloc.c | 4704 u64 start_blk, in ocfs2_insert_extent() argument 4721 rec.e_blkno = cpu_to_le64(start_blk); in ocfs2_insert_extent() 5840 u64 start_blk, in ocfs2_truncate_log_append() argument 5852 start_cluster = ocfs2_blocks_to_clusters(osb->sb, start_blk); in ocfs2_truncate_log_append() 5921 u64 start_blk; in ocfs2_replay_truncate_records() local 5954 start_blk = ocfs2_clusters_to_blocks(data_alloc_inode->i_sb, in ocfs2_replay_truncate_records() 5960 if (start_blk) { in ocfs2_replay_truncate_records() 5966 data_alloc_bh, start_blk, in ocfs2_replay_truncate_records() 6250 u64 start_blk; in ocfs2_complete_truncate_log_recovery() local 6285 start_blk = ocfs2_clusters_to_blocks(osb->sb, start_cluster); in ocfs2_complete_truncate_log_recovery() [all …]
|
D | dir.c | 2379 int num_dx_leaves, u64 start_blk) in ocfs2_dx_dir_format_cluster() argument 2386 bh = sb_getblk(osb->sb, start_blk + i); in ocfs2_dx_dir_format_cluster()
|
/fs/nilfs2/ |
D | page.c | 497 sector_t start_blk, in nilfs_find_uncommitted_extent() argument 511 index = start_blk >> (PAGE_SHIFT - inode->i_blkbits); in nilfs_find_uncommitted_extent() 536 if (b < start_blk) in nilfs_find_uncommitted_extent()
|
D | page.h | 50 sector_t start_blk,
|