Home
last modified time | relevance | path

Searched refs:nr_blocks (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v4.19/drivers/md/
Ddm-zoned-target.c105 unsigned int nr_blocks) in dmz_submit_read_bio() argument
115 if (nr_blocks == dmz_bio_blocks(bio)) { in dmz_submit_read_bio()
130 clone->bi_iter.bi_size = dmz_blk2sect(nr_blocks) << SECTOR_SHIFT; in dmz_submit_read_bio()
147 sector_t chunk_block, unsigned int nr_blocks) in dmz_handle_read_zero() argument
149 unsigned int size = nr_blocks << DMZ_BLOCK_SHIFT; in dmz_handle_read_zero()
166 unsigned int nr_blocks = dmz_bio_blocks(bio); in dmz_handle_read() local
167 sector_t end_block = chunk_block + nr_blocks; in dmz_handle_read()
181 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_read()
186 nr_blocks = 0; in dmz_handle_read()
194 nr_blocks = ret; in dmz_handle_read()
[all …]
Ddm-zoned-reclaim.c62 unsigned int nr_blocks; in dmz_reclaim_align_wp() local
75 nr_blocks = block - wp_block; in dmz_reclaim_align_wp()
78 dmz_blk2sect(nr_blocks), GFP_NOIO, 0); in dmz_reclaim_align_wp()
83 (unsigned long long)block, nr_blocks, ret); in dmz_reclaim_align_wp()
120 sector_t nr_blocks; in dmz_reclaim_copy() local
141 nr_blocks = ret; in dmz_reclaim_copy()
156 src.count = dmz_blk2sect(nr_blocks); in dmz_reclaim_copy()
173 block += nr_blocks; in dmz_reclaim_copy()
Ddm-era-target.c71 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument
73 ws->md.nr_bits = nr_blocks; in writeset_alloc()
75 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
173 __le32 nr_blocks; member
266 uint32_t nr_blocks; member
501 disk->nr_blocks = cpu_to_le32(md->nr_blocks); in prepare_superblock()
578 md->nr_blocks = le32_to_cpu(disk->nr_blocks); in open_metadata()
748 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset()
847 md->nr_blocks, *new_size, in metadata_resize()
854 md->nr_blocks = *new_size; in metadata_resize()
[all …]
Ddm-zoned-metadata.c1959 unsigned int nr_blocks; in dmz_merge_valid_blocks() local
1969 nr_blocks = ret; in dmz_merge_valid_blocks()
1970 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks()
1974 chunk_block += nr_blocks; in dmz_merge_valid_blocks()
1984 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument
1993 nr_blocks); in dmz_validate_blocks()
1995 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks()
1997 while (nr_blocks) { in dmz_validate_blocks()
2005 nr_bits = min(nr_blocks, DMZ_BLOCK_SIZE_BITS - bit); in dmz_validate_blocks()
2014 nr_blocks -= nr_bits; in dmz_validate_blocks()
[all …]
Ddm-zoned.h205 sector_t chunk_block, unsigned int nr_blocks);
207 sector_t chunk_block, unsigned int nr_blocks);
/Linux-v4.19/drivers/edac/
Dedac_device.c53 char *edac_block_name, unsigned nr_blocks, in edac_device_alloc_ctl_info() argument
68 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info()
88 count = nr_instances * nr_blocks; in edac_device_alloc_ctl_info()
148 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info()
149 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
157 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info()
574 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce()
579 instance->nr_blocks); in edac_device_handle_ce()
583 if (instance->nr_blocks > 0) { in edac_device_handle_ce()
616 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue()
[all …]
Dedac_device.h139 u32 nr_blocks; /* how many blocks */ member
244 char *edac_block_name, unsigned nr_blocks,
Dedac_device_sysfs.c643 instance->nr_blocks, idx); in edac_device_create_instance()
646 for (i = 0; i < instance->nr_blocks; i++) { in edac_device_create_instance()
685 for (i = 0; i < instance->nr_blocks; i++) in edac_device_delete_instance()
/Linux-v4.19/drivers/md/persistent-data/
Ddm-space-map-common.c224 ll->nr_blocks = 0; in sm_ll_init()
235 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend() local
238 nr_blocks = ll->nr_blocks + extra_blocks; in sm_ll_extend()
239 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend()
240 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
242 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
251 ll->nr_blocks = nr_blocks; in sm_ll_extend()
611 ll->nr_blocks = 0; in sm_ll_new_metadata()
653 ll->nr_blocks = le64_to_cpu(smr.nr_blocks); in sm_ll_open_metadata()
713 ll->nr_blocks = 0; in sm_ll_new_disk()
[all …]
Ddm-space-map-metadata.c285 *count = smm->ll.nr_blocks; in sm_metadata_get_nr_blocks()
294 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free()
451 r = sm_ll_find_free_block(&smm->old_ll, smm->begin, smm->old_ll.nr_blocks, b); in sm_metadata_new_block_()
533 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root()
586 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks()
595 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free()
633 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block()
698 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend()
763 dm_block_t nr_blocks, in dm_sm_metadata_create() argument
780 if (nr_blocks > DM_SM_METADATA_MAX_BLOCKS) in dm_sm_metadata_create()
[all …]
Ddm-space-map-disk.c51 *count = smd->old_ll.nr_blocks; in sm_disk_get_nr_blocks()
59 *count = (smd->old_ll.nr_blocks - smd->old_ll.nr_allocated) - smd->nr_allocated_this_transaction; in sm_disk_get_nr_free()
171 r = sm_ll_find_free_block(&smd->old_ll, smd->begin, smd->old_ll.nr_blocks, b); in sm_disk_new_block()
222 root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); in sm_disk_copy_root()
255 dm_block_t nr_blocks) in dm_sm_disk_create() argument
272 r = sm_ll_extend(&smd->ll, nr_blocks); in dm_sm_disk_create()
Ddm-space-map-common.h64 dm_block_t nr_blocks; member
85 __le64 nr_blocks; member
Ddm-space-map-disk.h20 dm_block_t nr_blocks);
Ddm-space-map-metadata.h34 dm_block_t nr_blocks,
/Linux-v4.19/drivers/hwtracing/intel_th/
Dmsu.c51 unsigned int nr_blocks; member
200 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_win_oldest_block()
357 if (++iter->block == iter->win->nr_blocks) in msc_iter_block_advance()
469 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_clear_hw_header()
682 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument
688 if (!nr_blocks) in msc_buffer_win_alloc()
691 win = kzalloc(offsetof(struct msc_window, block[nr_blocks]), in msc_buffer_win_alloc()
700 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc()
703 for (i = 0; i < nr_blocks; i++) { in msc_buffer_win_alloc()
718 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc()
[all …]
/Linux-v4.19/fs/afs/
Ddir_edit.c206 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_add() local
237 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_add()
242 for (b = 0; b < nr_blocks + 1; b++) { in afs_edit_dir_add()
251 if (nr_blocks >= AFS_DIR_MAX_BLOCKS) in afs_edit_dir_add()
278 if (b == nr_blocks) { in afs_edit_dir_add()
318 nr_blocks = 1; in afs_edit_dir_add()
386 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_remove() local
400 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_remove()
419 for (b = 0; b < nr_blocks; b++) { in afs_edit_dir_remove()
/Linux-v4.19/fs/jffs2/
Dbuild.c323 size += c->nr_blocks * 100; /* And 100 bytes per eraseblock */ in jffs2_calc_trigger_levels()
353 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels()
377 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs()
378 size = sizeof(struct jffs2_eraseblock) * c->nr_blocks; in jffs2_do_mount_fs()
388 for (i=0; i<c->nr_blocks; i++) { in jffs2_do_mount_fs()
Djffs2_fs_sb.h90 uint32_t nr_blocks; member
/Linux-v4.19/include/linux/mmc/
Dsh_mmcif.h153 unsigned long nr_blocks, in sh_mmcif_boot_do_read() argument
173 for (k = 0; !ret && k < nr_blocks; k++) in sh_mmcif_boot_do_read()
/Linux-v4.19/fs/gfs2/
Dinode.c512 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + in gfs2_trans_da_blks()
520 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode()
523 if (da->nr_blocks) { in link_dinode()
964 if (da.nr_blocks) { in gfs2_link()
965 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_link()
1003 if (da.nr_blocks) in gfs2_link()
1006 if (da.nr_blocks) in gfs2_link()
1358 struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; in gfs2_rename()
1499 if (da.nr_blocks) { in gfs2_rename()
1500 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_rename()
[all …]
Ddir.h23 unsigned nr_blocks; member
/Linux-v4.19/include/linux/mtd/
Dblktrans.h68 unsigned long block, unsigned nr_blocks);
/Linux-v4.19/fs/xfs/scrub/
Drepair.h21 bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
/Linux-v4.19/fs/ntfs/
Dvolume.h46 LCN nr_blocks; /* Number of sb->s_blocksize bytes member
/Linux-v4.19/mm/
Dswapfile.c140 sector_t nr_blocks; in discard_swap() local
146 nr_blocks = ((sector_t)se->nr_pages - 1) << (PAGE_SHIFT - 9); in discard_swap()
147 if (nr_blocks) { in discard_swap()
149 nr_blocks, GFP_KERNEL, 0); in discard_swap()
157 nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); in discard_swap()
160 nr_blocks, GFP_KERNEL, 0); in discard_swap()
184 sector_t nr_blocks = se->nr_pages - offset; in discard_swap_cluster() local
186 if (nr_blocks > nr_pages) in discard_swap_cluster()
187 nr_blocks = nr_pages; in discard_swap_cluster()
188 start_page += nr_blocks; in discard_swap_cluster()
[all …]

12