/linux-master/fs/bcachefs/ |
H A D | backpointers.h | 112 ptr >= s.v->ptrs + s.v->nr_blocks); 114 return ptr >= s.v->ptrs + s.v->nr_blocks - s.v->nr_redundant
|
H A D | btree_gc.c | 1682 for (i = 0; i < s->nr_blocks; i++) { 1707 for (i = 0; i < new->v.nr_blocks; i++)
|
H A D | ec.c | 139 unsigned nr_data = s.nr_blocks - s.nr_redundant; 149 for (unsigned i = 0; i < s.nr_blocks; i++) { 174 enum bch_data_type data_type = idx >= s.v->nr_blocks - s.v->nr_redundant 251 unsigned nr_data = s->nr_blocks - s->nr_redundant; 320 new_s->nr_blocks == old_s->nr_blocks && 323 new_s->nr_blocks * sizeof(struct bch_extent_ptr))) 327 (new_s->nr_blocks != old_s->nr_blocks || 350 unsigned nr_blocks local [all...] |
H A D | ec.h | 40 sizeof(struct bch_extent_ptr) * s->nr_blocks + 47 return stripe_csum_offset(s, s->nr_blocks, 0) + 67 return DIV_ROUND_UP(stripe_blockcount_offset(s, s->nr_blocks), 74 EBUG_ON(block >= s->nr_blocks); 109 unsigned nr_data = s->nr_blocks - s->nr_redundant; 123 unsigned nr_data = m->nr_blocks - m->nr_redundant;
|
H A D | replicas.c | 139 r->nr_required = s.v->nr_blocks - s.v->nr_redundant; 142 ptr < s.v->ptrs + s.v->nr_blocks;
|
H A D | extents.h | 251 to_entry(&s.v->ptrs[s.v->nr_blocks]),
|
H A D | alloc_foreground.c | 1066 unsigned nr_blocks; local 1069 nr_blocks = bkey_i_to_stripe(&ob->ec->new_stripe.key)->v.nr_blocks; 1071 for (i = 0; i < nr_blocks; i++) {
|
/linux-master/drivers/scsi/ |
H A D | sd.c | 896 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); local 911 put_unaligned_be32(nr_blocks, &buf[16]); 927 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); local 938 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); 954 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); local 965 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); 980 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); local 996 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) 1110 sector_t lba, unsigned int nr_blocks, 1122 put_unaligned_be32(nr_blocks, 1109 sd_setup_rw32_cmnd(struct scsi_cmnd *cmd, bool write, sector_t lba, unsigned int nr_blocks, unsigned char flags, unsigned int dld) argument 1127 sd_setup_rw16_cmnd(struct scsi_cmnd *cmd, bool write, sector_t lba, unsigned int nr_blocks, unsigned char flags, unsigned int dld) argument 1142 sd_setup_rw10_cmnd(struct scsi_cmnd *cmd, bool write, sector_t lba, unsigned int nr_blocks, unsigned char flags) argument 1157 sd_setup_rw6_cmnd(struct scsi_cmnd *cmd, bool write, sector_t lba, unsigned int nr_blocks, unsigned char flags) argument 1218 unsigned int nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); local [all...] |
H A D | sd.h | 259 unsigned int nr_blocks); 290 unsigned int nr_blocks) 288 sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba, unsigned int nr_blocks) argument
|
/linux-master/include/linux/ |
H A D | blkdev.h | 1078 sector_t nr_blocks, gfp_t gfp_mask, unsigned long flags) 1083 nr_blocks << (sb->s_blocksize_bits - 1088 sector_t nr_blocks, gfp_t gfp_mask) 1093 nr_blocks << (sb->s_blocksize_bits - 1077 sb_issue_discard(struct super_block *sb, sector_t block, sector_t nr_blocks, gfp_t gfp_mask, unsigned long flags) argument 1087 sb_issue_zeroout(struct super_block *sb, sector_t block, sector_t nr_blocks, gfp_t gfp_mask) argument
|
/linux-master/fs/zonefs/ |
H A D | super.c | 159 loff_t nr_blocks; local 171 nr_blocks = (old_isize - new_isize) >> sb->s_blocksize_bits; 172 if (sbi->s_used_blocks > nr_blocks) 173 sbi->s_used_blocks -= nr_blocks;
|
/linux-master/fs/xfs/ |
H A D | xfs_trace.h | 4333 uint64_t block_idx, uint64_t nr_blocks, 4335 TP_ARGS(cur, level, block_idx, nr_blocks, ptr, nr_records), 4341 __field(unsigned long long, nr_blocks) 4351 __entry->nr_blocks = nr_blocks; 4368 __entry->nr_blocks,
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu.c | 1333 int numlfs, total_lfs = 0, nr_blocks = 0; local 1355 num_blkaddr[nr_blocks] = blkaddr; 1356 nr_blocks++; 1369 for (i = 0; i < nr_blocks; i++) {
|
/linux-master/mm/ |
H A D | swapfile.c | 182 sector_t nr_blocks; local 188 nr_blocks = ((sector_t)se->nr_pages - 1) << (PAGE_SHIFT - 9); 189 if (nr_blocks) { 191 nr_blocks, GFP_KERNEL); 199 nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); 202 nr_blocks, GFP_KERNEL); 256 sector_t nr_blocks = se->nr_pages - offset; local 258 if (nr_blocks > nr_pages) 259 nr_blocks = nr_pages; 260 start_page += nr_blocks; [all...] |
/linux-master/kernel/power/ |
H A D | snapshot.c | 545 unsigned int i, nr_blocks; local 557 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); 559 for (i = 0; i < nr_blocks; i++) {
|
/linux-master/fs/xfs/scrub/ |
H A D | rmap_repair.c | 1007 uint64_t nr_blocks; /* RMB */ local 1012 * We're going to recompute new_btree.bload.nr_blocks at the end of 1018 nr_blocks = rr->new_btree.bload.nr_blocks; 1027 nr_blocks - *blocks_reserved); 1031 *blocks_reserved = rr->new_btree.bload.nr_blocks; 1083 *done = nr_blocks >= rr->new_btree.bload.nr_blocks;
|
H A D | repair.c | 253 xfs_extlen_t nr_blocks, 258 pag->pagf_freeblks > xfs_ag_resv_needed(pag, type) + nr_blocks; 251 xrep_ag_has_space( struct xfs_perag *pag, xfs_extlen_t nr_blocks, enum xfs_ag_resv_type type) argument
|
H A D | repair.h | 36 bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
|
H A D | refcount_repair.c | 627 rr->new_btree.bload.nr_blocks);
|
H A D | newbt.h | 66 int xrep_newbt_alloc_blocks(struct xrep_newbt *xnr, uint64_t nr_blocks);
|
H A D | newbt.c | 220 uint64_t nr_blocks) 228 while (nr_blocks > 0) { 234 .maxlen = nr_blocks, 267 nr_blocks -= args.len; 295 uint64_t nr_blocks) 301 while (nr_blocks > 0) { 307 .maxlen = nr_blocks, 343 nr_blocks -= args.len; 358 uint64_t nr_blocks) 361 return xrep_newbt_alloc_file_blocks(xnr, nr_blocks); 218 xrep_newbt_alloc_ag_blocks( struct xrep_newbt *xnr, uint64_t nr_blocks) argument 293 xrep_newbt_alloc_file_blocks( struct xrep_newbt *xnr, uint64_t nr_blocks) argument 356 xrep_newbt_alloc_blocks( struct xrep_newbt *xnr, uint64_t nr_blocks) argument [all...] |
H A D | ialloc_repair.c | 701 ri->new_inobt.bload.nr_blocks); 707 ri->new_finobt.bload.nr_blocks);
|
H A D | bmap_repair.c | 582 rb->new_bmapbt.bload.nr_blocks, 0, true); 588 rb->new_bmapbt.bload.nr_blocks);
|
H A D | alloc_repair.c | 124 xfs_agblock_t nr_blocks; member in struct:xrep_abt 219 ra->nr_blocks += arec.ar_blockcount; 463 required = ra->new_bnobt.bload.nr_blocks + 464 ra->new_cntbt.bload.nr_blocks; 495 ra->nr_blocks -= len; 661 freesp_btreeblks += ra->new_bnobt.bload.nr_blocks - 1; 662 freesp_btreeblks += ra->new_cntbt.bload.nr_blocks - 1; 673 agf->agf_freeblks = cpu_to_be32(ra->nr_blocks);
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_btree_staging.c | 187 * In step four, the caller must allocate xfs_btree_bload.nr_blocks blocks and 228 * and returned via btree_height and nr_blocks. 576 uint64_t nr_blocks = 0; local 611 nr_blocks++; 644 nr_blocks++; 653 nr_blocks += level_blocks; 662 bbl->nr_blocks = nr_blocks - 1; 664 bbl->nr_blocks = nr_blocks; [all...] |