/linux-master/fs/xfs/scrub/ |
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);
|
H A D | repair.h | 36 bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
|
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 | bmap_repair.c | 582 rb->new_bmapbt.bload.nr_blocks, 0, true); 588 rb->new_bmapbt.bload.nr_blocks);
|
H A D | ialloc_repair.c | 701 ri->new_inobt.bload.nr_blocks); 707 ri->new_finobt.bload.nr_blocks);
|
H A D | refcount_repair.c | 627 rr->new_btree.bload.nr_blocks);
|
/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
|
/linux-master/fs/gfs2/ |
H A D | dir.h | 20 unsigned nr_blocks; member in struct:gfs2_diradd
|
H A D | inode.c | 545 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + 553 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; 556 if (da->nr_blocks) { 1011 if (da.nr_blocks) { 1012 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; 1050 if (da.nr_blocks) 1053 if (da.nr_blocks) 1410 struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; 1569 if (da.nr_blocks) { [all...] |
/linux-master/init/ |
H A D | do_mounts_rd.c | 177 static unsigned long nr_blocks(struct file *file) function 221 rd_blocks = nr_blocks(out_file); 234 devblocks = nr_blocks(in_file);
|
/linux-master/drivers/md/ |
H A D | dm-zoned-metadata.c | 2455 unsigned int nr_blocks; local 2465 nr_blocks = ret; 2466 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); 2470 chunk_block += nr_blocks; 2477 * Validate all the blocks in the range [block..block+nr_blocks-1]. 2480 sector_t chunk_block, unsigned int nr_blocks) 2489 nr_blocks); 2491 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); 2493 while (nr_blocks) { 2501 nr_bits = min(nr_blocks, zm 2479 dmz_validate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone, sector_t chunk_block, unsigned int nr_blocks) argument 2560 dmz_invalidate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone, sector_t chunk_block, unsigned int nr_blocks) argument 2634 dmz_to_next_set_block(struct dmz_metadata *zmd, struct dm_zone *zone, sector_t chunk_block, unsigned int nr_blocks, int set) argument 2751 unsigned int nr_blocks = zmd->zone_nr_blocks; local [all...] |
H A D | dm-zoned.h | 257 sector_t chunk_block, unsigned int nr_blocks); 259 sector_t chunk_block, unsigned int nr_blocks);
|
/linux-master/fs/jffs2/ |
H A D | jffs2_fs_sb.h | 91 uint32_t nr_blocks; member in struct:jffs2_sb_info
|
H A D | scan.c | 143 for (i=0; i<c->nr_blocks; i++) { 265 ((c->nr_free_blocks+empty_blocks+bad_blocks) != c->nr_blocks || bad_blocks == c->nr_blocks)) { 267 pr_notice("empty_blocks %d, bad_blocks %d, c->nr_blocks %d\n", 268 empty_blocks, bad_blocks, c->nr_blocks);
|
/linux-master/drivers/scsi/ |
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
|
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_zbc.c | 402 * @nr_blocks: the number of LBAs to be written 412 unsigned int nr_blocks) 453 if (wp_offset + nr_blocks > sdkp->zone_info.zone_blocks) { 411 sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba, unsigned int nr_blocks) argument
|
/linux-master/drivers/hwtracing/intel_th/ |
H A D | msu.c | 62 * @nr_blocks: number of blocks (pages) in this window 63 * @nr_segs: number of segments in this window (<= @nr_blocks) 72 unsigned int nr_blocks; member in struct:msc_window 334 return (size_t)win->nr_blocks << PAGE_SHIFT; 1083 * @nr_blocks: number of pages in this window 1090 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) argument 1095 if (!nr_blocks) 1112 win->pgoff = prev->pgoff + prev->nr_blocks; 1117 nr_blocks << PAGE_SHIFT); 1119 ret = __msc_buffer_win_alloc(win, nr_blocks); [all...] |
/linux-master/mm/ |
H A D | dmapool.c | 52 size_t nr_blocks; member in struct:dma_pool 84 pool->nr_blocks, pool->size, 324 pool->nr_blocks++;
|
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/drivers/edac/ |
H A D | edac_device_sysfs.c | 646 instance->nr_blocks, idx); 649 for (i = 0; i < instance->nr_blocks; i++) { 688 for (i = 0; i < instance->nr_blocks; i++)
|
/linux-master/include/linux/ |
H A D | fscrypt.h | 852 u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks); 889 u64 nr_blocks) 891 return nr_blocks; 888 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks) argument
|
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/iomap/ |
H A D | buffered-io.c | 186 unsigned int nr_blocks = i_blocks_per_folio(inode, folio); local 189 if (ifs || nr_blocks <= 1) 204 BITS_TO_LONGS(2 * nr_blocks)), gfp); 210 bitmap_set(ifs->state, 0, nr_blocks); 212 bitmap_set(ifs->state, nr_blocks, nr_blocks); 679 unsigned int nr_blocks = i_blocks_per_folio(iter->inode, folio); local 695 if ((iter->flags & IOMAP_NOWAIT) && !ifs && nr_blocks > 1)
|
/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;
|