Home
last modified time | relevance | path

Searched refs:start_blk (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/fs/ext4/
Dblock_validity.c25 ext4_fsblk_t start_blk; member
47 if ((entry1->start_blk + entry1->count) == entry2->start_blk) in can_merge()
58 ext4_fsblk_t start_blk, in add_system_zone() argument
68 if (start_blk < entry->start_blk) in add_system_zone()
70 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone()
73 if (start_blk + count > (entry->start_blk + in add_system_zone()
75 entry->count = (start_blk + count - in add_system_zone()
76 entry->start_blk); in add_system_zone()
89 new_entry->start_blk = start_blk; in add_system_zone()
102 new_entry->start_blk = entry->start_blk; in add_system_zone()
[all …]
Dresize.c254 ext4_fsblk_t start_blk; in ext4_alloc_group_tables() local
277 start_blk = ext4_group_first_block_no(sb, src_group); in ext4_alloc_group_tables()
278 last_blk = start_blk + group_data[src_group - group].blocks_count; in ext4_alloc_group_tables()
282 start_blk += overhead; in ext4_alloc_group_tables()
296 if (start_blk >= last_blk) in ext4_alloc_group_tables()
298 group_data[bb_index].block_bitmap = start_blk++; in ext4_alloc_group_tables()
299 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables()
307 if (start_blk >= last_blk) in ext4_alloc_group_tables()
309 group_data[ib_index].inode_bitmap = start_blk++; in ext4_alloc_group_tables()
310 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables()
[all …]
Dextents.c5149 ext4_lblk_t start_blk; in ext4_fiemap() local
5182 start_blk = start >> inode->i_sb->s_blocksize_bits; in ext4_fiemap()
5186 len_blks = ((ext4_lblk_t) last_blk) - start_blk + 1; in ext4_fiemap()
5192 error = ext4_fill_fiemap_extents(inode, start_blk, in ext4_fiemap()
/Linux-v4.19/fs/
Dioctl.c286 sector_t start_blk, last_blk; in __generic_block_fiemap() local
314 start_blk = logical_to_blk(inode, start); in __generic_block_fiemap()
325 ret = get_block(inode, start_blk, &map_bh, 0); in __generic_block_fiemap()
331 start_blk++; in __generic_block_fiemap()
341 blk_to_logical(inode, start_blk) >= isize) in __generic_block_fiemap()
360 if (start_blk > last_blk || past_eof || ret) in __generic_block_fiemap()
378 if (start_blk > last_blk && !whole_file) { in __generic_block_fiemap()
397 logical = blk_to_logical(inode, start_blk); in __generic_block_fiemap()
402 start_blk += logical_to_blk(inode, size); in __generic_block_fiemap()
/Linux-v4.19/fs/f2fs/
Dcheckpoint.c644 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() local
670 start_blk = __start_cp_addr(sbi) + 1 + __cp_payload(sbi); in f2fs_recover_orphan_inodes()
673 f2fs_ra_meta_pages(sbi, start_blk, orphan_blocks, META_CP, true); in f2fs_recover_orphan_inodes()
679 page = f2fs_get_meta_page(sbi, start_blk + i); in f2fs_recover_orphan_inodes()
709 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() argument
732 page = f2fs_grab_meta_page(sbi, start_blk++); in write_orphan_inodes()
1267 block_t start_blk; in do_checkpoint() local
1341 start_blk = __start_cp_next_addr(sbi); in do_checkpoint()
1351 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()
1366 f2fs_update_meta_page(sbi, ckpt, start_blk++); in do_checkpoint()
[all …]
Ddata.c200 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
202 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
219 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
1359 sector_t start_blk, last_blk; in f2fs_fiemap() local
1391 start_blk = logical_to_blk(inode, start); in f2fs_fiemap()
1398 ret = get_data_block(inode, start_blk, &map_bh, 0, in f2fs_fiemap()
1405 start_blk = next_pgofs; in f2fs_fiemap()
1407 if (blk_to_logical(inode, start_blk) < blk_to_logical(inode, in f2fs_fiemap()
1422 if (start_blk > last_blk || ret) in f2fs_fiemap()
1425 logical = blk_to_logical(inode, start_blk); in f2fs_fiemap()
[all …]
Dsegment.c1276 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd()
1624 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone()
3455 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_data_summaries() argument
3458 write_compacted_summaries(sbi, start_blk); in f2fs_write_data_summaries()
3460 write_normal_summaries(sbi, start_blk, CURSEG_HOT_DATA); in f2fs_write_data_summaries()
3463 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_node_summaries() argument
3465 write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE); in f2fs_write_node_summaries()
3890 unsigned int readed, start_blk = 0; in build_sit_entries() local
3895 readed = f2fs_ra_meta_pages(sbi, start_blk, BIO_MAX_PAGES, in build_sit_entries()
3898 start = start_blk * sit_i->sents_per_block; in build_sit_entries()
[all …]
Dsuper.c2660 FDEV(i).start_blk = 0; in f2fs_scan_devices()
2661 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices()
2666 FDEV(i).start_blk = FDEV(i - 1).end_blk + 1; in f2fs_scan_devices()
2667 FDEV(i).end_blk = FDEV(i).start_blk + in f2fs_scan_devices()
2699 FDEV(i).start_blk, FDEV(i).end_blk, in f2fs_scan_devices()
2709 FDEV(i).start_blk, FDEV(i).end_blk); in f2fs_scan_devices()
Df2fs.h1058 block_t start_blk; member
2946 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk);
2947 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk);
/Linux-v4.19/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c2199 u64 start_blk = io_info->pdBlock; in megasas_set_pd_lba() local
2219 cdb[12] = (u8)((start_blk >> 56) & 0xff); in megasas_set_pd_lba()
2220 cdb[13] = (u8)((start_blk >> 48) & 0xff); in megasas_set_pd_lba()
2221 cdb[14] = (u8)((start_blk >> 40) & 0xff); in megasas_set_pd_lba()
2222 cdb[15] = (u8)((start_blk >> 32) & 0xff); in megasas_set_pd_lba()
2223 cdb[16] = (u8)((start_blk >> 24) & 0xff); in megasas_set_pd_lba()
2224 cdb[17] = (u8)((start_blk >> 16) & 0xff); in megasas_set_pd_lba()
2225 cdb[18] = (u8)((start_blk >> 8) & 0xff); in megasas_set_pd_lba()
2226 cdb[19] = (u8)(start_blk & 0xff); in megasas_set_pd_lba()
2259 (start_blk <= 0xffffffff)) { in megasas_set_pd_lba()
[all …]
Dmbox_defs.h605 uint32_t start_blk; member
617 uint32_t start_blk; member
/Linux-v4.19/fs/xfs/
Dxfs_log_recover.c451 xfs_daddr_t start_blk, in xlog_find_verify_cycle() argument
478 for (i = start_blk; i < start_blk + nbblks; i += bufblks) { in xlog_find_verify_cycle()
481 bcount = min(bufblks, (start_blk + nbblks - i)); in xlog_find_verify_cycle()
520 xfs_daddr_t start_blk, in xlog_find_verify_log_record() argument
530 int num_blks = *last_blk - start_blk; in xlog_find_verify_log_record()
533 ASSERT(start_blk != 0 || *last_blk != start_blk); in xlog_find_verify_log_record()
540 error = xlog_bread(log, start_blk, num_blks, bp, &offset); in xlog_find_verify_log_record()
547 if (i < start_blk) { in xlog_find_verify_log_record()
634 xfs_daddr_t new_blk, first_blk, start_blk, last_blk, head_blk; in xlog_find_head() local
761 start_blk = head_blk - num_scan_bblks; in xlog_find_head()
[all …]
/Linux-v4.19/fs/ocfs2/
Dsuballoc.h148 u64 start_blk,
153 u64 start_blk,
Dalloc.h100 u64 start_blk,
188 u64 start_blk,
Docfs2_trace.h740 TP_PROTO(int count, int bit, unsigned long long start_blk,
742 TP_ARGS(count, bit, start_blk, blkno),
746 __field(unsigned long long, start_blk)
752 __entry->start_blk = start_blk;
756 __entry->count, __entry->bit, __entry->start_blk,
855 TP_PROTO(unsigned long long bg_blkno, unsigned long long start_blk,
857 TP_ARGS(bg_blkno, start_blk, start_bit, count),
860 __field(unsigned long long, start_blk)
866 __entry->start_blk = start_blk;
870 TP_printk("%llu %llu %u %u", __entry->bg_blkno, __entry->start_blk,
Dsuballoc.c2558 u64 start_blk, in _ocfs2_free_clusters() argument
2572 BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, in _ocfs2_free_clusters()
2574 start_blk))); in _ocfs2_free_clusters()
2577 ocfs2_block_to_cluster_group(bitmap_inode, start_blk, &bg_blkno, in _ocfs2_free_clusters()
2581 (unsigned long long)start_blk, in _ocfs2_free_clusters()
2604 u64 start_blk, in ocfs2_free_clusters() argument
2608 start_blk, num_clusters, in ocfs2_free_clusters()
2619 u64 start_blk, in ocfs2_release_clusters() argument
2623 start_blk, num_clusters, in ocfs2_release_clusters()
Dalloc.c4719 u64 start_blk, in ocfs2_insert_extent() argument
4736 rec.e_blkno = cpu_to_le64(start_blk); in ocfs2_insert_extent()
5859 u64 start_blk, in ocfs2_truncate_log_append() argument
5871 start_cluster = ocfs2_blocks_to_clusters(osb->sb, start_blk); in ocfs2_truncate_log_append()
5940 u64 start_blk; in ocfs2_replay_truncate_records() local
5973 start_blk = ocfs2_clusters_to_blocks(data_alloc_inode->i_sb, in ocfs2_replay_truncate_records()
5979 if (start_blk) { in ocfs2_replay_truncate_records()
5985 data_alloc_bh, start_blk, in ocfs2_replay_truncate_records()
6254 u64 start_blk; in ocfs2_complete_truncate_log_recovery() local
6289 start_blk = ocfs2_clusters_to_blocks(osb->sb, start_cluster); in ocfs2_complete_truncate_log_recovery()
[all …]
Ddir.c2406 int num_dx_leaves, u64 start_blk) in ocfs2_dx_dir_format_cluster() argument
2413 bh = sb_getblk(osb->sb, start_blk + i); in ocfs2_dx_dir_format_cluster()
/Linux-v4.19/block/partitions/
Dacorn.c168 unsigned int start_blk = 0; in adfspart_check_CUMANA() local
192 data = read_part_sector(state, start_blk * 2 + 6, &sect); in adfspart_check_CUMANA()
214 start_blk += nr_sects >> (BLOCK_SIZE_BITS - 9); in adfspart_check_CUMANA()
/Linux-v4.19/fs/ext2/
Dballoc.c1202 int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk, in ext2_data_block_valid() argument
1205 if ((start_blk <= le32_to_cpu(sbi->s_es->s_first_data_block)) || in ext2_data_block_valid()
1206 (start_blk + count < start_blk) || in ext2_data_block_valid()
1207 (start_blk > le32_to_cpu(sbi->s_es->s_blocks_count))) in ext2_data_block_valid()
1211 if ((start_blk <= sbi->s_sb_block) && in ext2_data_block_valid()
1212 (start_blk + count >= sbi->s_sb_block)) in ext2_data_block_valid()
Dext2.h745 extern int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
/Linux-v4.19/drivers/s390/char/
Dsclp_sdias.c164 int sclp_sdias_copy(void *dest, int start_blk, int nr_blks) in sclp_sdias_copy() argument
185 sccb.evbuf.fbn = start_blk; in sclp_sdias_copy()
/Linux-v4.19/fs/nilfs2/
Dpage.h50 sector_t start_blk,
Dpage.c495 sector_t start_blk, in nilfs_find_uncommitted_extent() argument
509 index = start_blk >> (PAGE_SHIFT - inode->i_blkbits); in nilfs_find_uncommitted_extent()
534 if (b < start_blk) in nilfs_find_uncommitted_extent()
/Linux-v4.19/drivers/scsi/
Dmegaraid.h401 u32 start_blk; /* starting block */ member
407 u32 start_blk; /* starting block */ member

12