/fs/ext4/ |
D | block_validity.c | 25 ext4_fsblk_t start_blk; member 48 if ((entry1->start_blk + entry1->count) == entry2->start_blk) in can_merge() 68 ext4_fsblk_t start_blk, in add_system_zone() argument 78 if (start_blk < entry->start_blk) in add_system_zone() 80 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone() 83 if (start_blk + count > (entry->start_blk + in add_system_zone() 85 entry->count = (start_blk + count - in add_system_zone() 86 entry->start_blk); in add_system_zone() 99 new_entry->start_blk = start_blk; in add_system_zone() 112 new_entry->start_blk = entry->start_blk; in add_system_zone() [all …]
|
D | resize.c | 256 ext4_fsblk_t start_blk; in ext4_alloc_group_tables() local 279 start_blk = ext4_group_first_block_no(sb, src_group); in ext4_alloc_group_tables() 280 last_blk = start_blk + group_data[src_group - group].blocks_count; in ext4_alloc_group_tables() 284 start_blk += overhead; in ext4_alloc_group_tables() 298 if (start_blk >= last_blk) in ext4_alloc_group_tables() 300 group_data[bb_index].block_bitmap = start_blk++; in ext4_alloc_group_tables() 301 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables() 309 if (start_blk >= last_blk) in ext4_alloc_group_tables() 311 group_data[ib_index].inode_bitmap = start_blk++; in ext4_alloc_group_tables() 312 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables() [all …]
|
D | extents.c | 5109 ext4_lblk_t start_blk; in _ext4_fiemap() local 5148 start_blk = start >> inode->i_sb->s_blocksize_bits; in _ext4_fiemap() 5152 len_blks = ((ext4_lblk_t) last_blk) - start_blk + 1; in _ext4_fiemap() 5158 error = fill(inode, start_blk, len_blks, fieinfo); in _ext4_fiemap()
|
D | ext4.h | 3241 ext4_fsblk_t start_blk,
|
/fs/ |
D | ioctl.c | 295 sector_t start_blk, last_blk; in __generic_block_fiemap() local 323 start_blk = logical_to_blk(inode, start); in __generic_block_fiemap() 334 ret = get_block(inode, start_blk, &map_bh, 0); in __generic_block_fiemap() 340 start_blk++; in __generic_block_fiemap() 350 blk_to_logical(inode, start_blk) >= isize) in __generic_block_fiemap() 369 if (start_blk > last_blk || past_eof || ret) in __generic_block_fiemap() 387 if (start_blk > last_blk && !whole_file) { in __generic_block_fiemap() 406 logical = blk_to_logical(inode, start_blk); in __generic_block_fiemap() 411 start_blk += logical_to_blk(inode, size); in __generic_block_fiemap()
|
/fs/f2fs/ |
D | checkpoint.c | 667 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() local 698 start_blk = __start_cp_addr(sbi) + 1 + __cp_payload(sbi); in f2fs_recover_orphan_inodes() 701 f2fs_ra_meta_pages(sbi, start_blk, orphan_blocks, META_CP, true); in f2fs_recover_orphan_inodes() 707 page = f2fs_get_meta_page(sbi, start_blk + i); in f2fs_recover_orphan_inodes() 739 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() argument 762 page = f2fs_grab_meta_page(sbi, start_blk++); in write_orphan_inodes() 1375 block_t start_blk; in do_checkpoint() local 1447 start_blk = __start_cp_next_addr(sbi); in do_checkpoint() 1457 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint() 1464 f2fs_update_meta_page(sbi, ckpt, start_blk++); in do_checkpoint() [all …]
|
D | data.c | 251 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device() 253 blk_addr -= FDEV(i).start_blk; in f2fs_target_device() 274 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index() 1708 sector_t start_blk, last_blk; in f2fs_fiemap() local 1740 start_blk = logical_to_blk(inode, start); in f2fs_fiemap() 1747 ret = get_data_block(inode, start_blk, &map_bh, 0, in f2fs_fiemap() 1754 start_blk = next_pgofs; in f2fs_fiemap() 1756 if (blk_to_logical(inode, start_blk) < blk_to_logical(inode, in f2fs_fiemap() 1771 if (start_blk > last_blk || ret) in f2fs_fiemap() 1774 logical = blk_to_logical(inode, start_blk); in f2fs_fiemap() [all …]
|
D | segment.c | 1397 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd() 1763 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone() 1768 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone() 3706 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_data_summaries() argument 3709 write_compacted_summaries(sbi, start_blk); in f2fs_write_data_summaries() 3711 write_normal_summaries(sbi, start_blk, CURSEG_HOT_DATA); in f2fs_write_data_summaries() 3714 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_node_summaries() argument 3716 write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE); in f2fs_write_node_summaries() 4150 unsigned int readed, start_blk = 0; in build_sit_entries() local 4155 readed = f2fs_ra_meta_pages(sbi, start_blk, BIO_MAX_PAGES, in build_sit_entries() [all …]
|
D | super.c | 3125 FDEV(i).start_blk = 0; in f2fs_scan_devices() 3126 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices() 3131 FDEV(i).start_blk = FDEV(i - 1).end_blk + 1; in f2fs_scan_devices() 3132 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices() 3161 FDEV(i).start_blk, FDEV(i).end_blk, in f2fs_scan_devices() 3170 FDEV(i).start_blk, FDEV(i).end_blk); in f2fs_scan_devices()
|
D | f2fs.h | 1099 block_t start_blk; member 3156 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk); 3157 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk);
|
D | file.c | 2797 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device()
|
/fs/xfs/ |
D | xfs_log_recover.c | 371 xfs_daddr_t start_blk, in xlog_find_verify_cycle() argument 398 for (i = start_blk; i < start_blk + nbblks; i += bufblks) { in xlog_find_verify_cycle() 401 bcount = min(bufblks, (start_blk + nbblks - i)); in xlog_find_verify_cycle() 440 xfs_daddr_t start_blk, in xlog_find_verify_log_record() argument 450 int num_blks = *last_blk - start_blk; in xlog_find_verify_log_record() 453 ASSERT(start_blk != 0 || *last_blk != start_blk); in xlog_find_verify_log_record() 462 error = xlog_bread(log, start_blk, num_blks, buffer, &offset); in xlog_find_verify_log_record() 469 if (i < start_blk) { in xlog_find_verify_log_record() 556 xfs_daddr_t new_blk, first_blk, start_blk, last_blk, head_blk; in xlog_find_head() local 684 start_blk = head_blk - num_scan_bblks; in xlog_find_head() [all …]
|
/fs/ext2/ |
D | balloc.c | 1200 int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk, in ext2_data_block_valid() argument 1203 if ((start_blk <= le32_to_cpu(sbi->s_es->s_first_data_block)) || in ext2_data_block_valid() 1204 (start_blk + count - 1 < start_blk) || in ext2_data_block_valid() 1205 (start_blk + count - 1 >= le32_to_cpu(sbi->s_es->s_blocks_count))) in ext2_data_block_valid() 1209 if ((start_blk <= sbi->s_sb_block) && in ext2_data_block_valid() 1210 (start_blk + count - 1 >= sbi->s_sb_block)) in ext2_data_block_valid()
|
D | ext2.h | 725 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 | 2544 u64 start_blk, in _ocfs2_free_clusters() argument 2558 BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, in _ocfs2_free_clusters() 2560 start_blk))); in _ocfs2_free_clusters() 2563 ocfs2_block_to_cluster_group(bitmap_inode, start_blk, &bg_blkno, in _ocfs2_free_clusters() 2567 (unsigned long long)start_blk, in _ocfs2_free_clusters() 2590 u64 start_blk, in ocfs2_free_clusters() argument 2594 start_blk, num_clusters, in ocfs2_free_clusters() 2605 u64 start_blk, in ocfs2_release_clusters() argument 2609 start_blk, num_clusters, in ocfs2_release_clusters()
|
D | alloc.c | 4705 u64 start_blk, in ocfs2_insert_extent() argument 4722 rec.e_blkno = cpu_to_le64(start_blk); in ocfs2_insert_extent() 5841 u64 start_blk, in ocfs2_truncate_log_append() argument 5853 start_cluster = ocfs2_blocks_to_clusters(osb->sb, start_blk); in ocfs2_truncate_log_append() 5922 u64 start_blk; in ocfs2_replay_truncate_records() local 5955 start_blk = ocfs2_clusters_to_blocks(data_alloc_inode->i_sb, in ocfs2_replay_truncate_records() 5961 if (start_blk) { in ocfs2_replay_truncate_records() 5967 data_alloc_bh, start_blk, in ocfs2_replay_truncate_records() 6251 u64 start_blk; in ocfs2_complete_truncate_log_recovery() local 6286 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 | 492 sector_t start_blk, in nilfs_find_uncommitted_extent() argument 506 index = start_blk >> (PAGE_SHIFT - inode->i_blkbits); in nilfs_find_uncommitted_extent() 531 if (b < start_blk) in nilfs_find_uncommitted_extent()
|
D | page.h | 50 sector_t start_blk,
|