| /linux-6.15/block/ |
| H A D | badblocks.c | 954 sectors -= len; in _badblocks_set() 1044 p[prev + 1] = BB_MAKE(s + sectors, end - s - sectors, ack); in front_splitting_clear() 1045 return sectors; in front_splitting_clear() 1089 len = sectors; in _badblocks_clear() 1115 len = sectors; in _badblocks_clear() 1123 len = sectors; in _badblocks_clear() 1161 len = sectors; in _badblocks_clear() 1167 sectors -= len; in _badblocks_clear() 1201 len = sectors; in _badblocks_check() 1210 len = sectors; in _badblocks_check() [all …]
|
| /linux-6.15/fs/bcachefs/ |
| H A D | fs-io.h | 58 u64 sectors; member 67 BUG_ON(res->sectors > inode->ei_quota_reserved); in __bch2_quota_reservation_put() 70 -((s64) res->sectors), KEY_TYPE_QUOTA_PREALLOC); in __bch2_quota_reservation_put() 71 inode->ei_quota_reserved -= res->sectors; in __bch2_quota_reservation_put() 72 res->sectors = 0; in __bch2_quota_reservation_put() 79 if (res->sectors) { in bch2_quota_reservation_put() 89 u64 sectors, in bch2_quota_reservation_add() argument 101 inode->ei_quota_reserved += sectors; in bch2_quota_reservation_add() 102 res->sectors += sectors; in bch2_quota_reservation_add() 122 unsigned sectors, in bch2_quota_reservation_add() argument [all …]
|
| H A D | buckets.h | 129 EBUG_ON(sectors < 0); in ptr_disk_sectors() 134 : sectors; in ptr_disk_sectors() 300 if (res->sectors) { in bch2_disk_reservation_put() 301 this_cpu_sub(*c->online_reserved, res->sectors); in bch2_disk_reservation_put() 302 res->sectors = 0; in bch2_disk_reservation_put() 322 if (sectors > old) in bch2_disk_reservation_add() 325 new = old - sectors; in bch2_disk_reservation_add() 328 this_cpu_add(*c->online_reserved, sectors); in bch2_disk_reservation_add() 329 res->sectors += sectors; in bch2_disk_reservation_add() 340 .sectors = 0, in bch2_disk_reservation_init() [all …]
|
| H A D | buckets.c | 102 usage->d[i].sectors, in bch2_dev_usage_to_text() 434 BUG_ON(!sectors); in bch2_bucket_ref_update() 586 s64 *sectors, in bch2_trigger_pointer() argument 655 s64 sectors, in bch2_trigger_stripe_ptr() argument 681 sectors); in bch2_trigger_stripe_ptr() 935 sectors[0] = -sectors[0]; in __trigger_reservation() 1065 unsigned sectors = in bch2_trans_mark_metadata_sectors() local 1079 start += sectors; in bch2_trans_mark_metadata_sectors() 1222 res->sectors += sectors; in __bch2_disk_reservation_add() 1235 sectors = min(sectors, sectors_available); in __bch2_disk_reservation_add() [all …]
|
| H A D | fs-io-pagecache.c | 162 BUG_ON(pg_offset >= sectors); in __bch2_folio_set() 163 BUG_ON(pg_offset + pg_len > sectors); in __bch2_folio_set() 172 if (i == sectors) in __bch2_folio_set() 373 for (i = 0; i < sectors; i++) in bch2_get_folio_disk_reservation() 387 for (i = 0; i < sectors; i++) in bch2_get_folio_disk_reservation() 467 res->disk.sectors += disk_res.sectors; in __bch2_folio_reservation_get() 503 for (i = 0; i < sectors; i++) { in bch2_clear_folio_bits() 544 sectors = min_t(unsigned, sectors, res->disk.sectors); in bch2_set_folio_dirty() 547 res->disk.sectors -= sectors; in bch2_set_folio_dirty() 753 unsigned i, sectors; in folio_hole_offset() local [all …]
|
| H A D | movinggc.c | 34 size_t sectors; member 69 list->sectors += b.sectors; in move_bucket_in_flight_add() 99 b->sectors = bch2_bucket_sectors_dirty(*a); in bch2_bucket_is_movable() 129 list->sectors -= i->bucket.sectors; in move_buckets_wait() 155 size_t saw = 0, in_flight = 0, not_movable = 0, sectors = 0; in bch2_copygc_get_buckets() local 190 sectors += b.sectors; in bch2_copygc_get_buckets() 199 buckets_in_flight->nr, buckets_in_flight->sectors, in bch2_copygc_get_buckets() 200 saw, in_flight, not_movable, buckets->nr, sectors, nr_to_get, ret); in bch2_copygc_get_buckets()
|
| H A D | fs-io.c | 160 if (sectors < 0) in __bch2_i_sectors_acct() 161 sectors = -inode->v.i_blocks; in __bch2_i_sectors_acct() 163 sectors = 0; in __bch2_i_sectors_acct() 166 inode->v.i_blocks += sectors; in __bch2_i_sectors_acct() 171 sectors > 0) { in __bch2_i_sectors_acct() 172 BUG_ON(sectors > quota_res->sectors); in __bch2_i_sectors_acct() 175 quota_res->sectors -= sectors; in __bch2_i_sectors_acct() 650 unsigned sectors; in __bchfs_fallocate() local 862 u64 sectors = end - start; in quota_reserve_range() local 873 BUG_ON(s > sectors); in quota_reserve_range() [all …]
|
| H A D | alloc_foreground.h | 200 struct bkey_i *k, unsigned sectors, in bch2_alloc_sectors_append_ptrs_inlined() argument 206 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined() 207 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined() 208 wp->sectors_allocated += sectors; in bch2_alloc_sectors_append_ptrs_inlined() 220 BUG_ON(sectors > ob->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined() 221 ob->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
|
| H A D | ec.c | 153 le16_to_cpu(s.sectors), in bch2_stripe_to_text() 198 s64 sectors = parity ? le16_to_cpu(s.v->sectors) : 0; in __mark_stripe_bucket() local 204 sectors = -sectors; in __mark_stripe_bucket() 263 if (sectors) { in __mark_stripe_bucket() 440 gc->sectors = le16_to_cpu(new_s->sectors); in bch2_trigger_stripe() 455 s64 sectors = (u64) le16_to_cpu(new_s->sectors) * new_s->nr_redundant; in bch2_trigger_stripe() local 471 s64 sectors = -((s64) le16_to_cpu(old_s->sectors)) * old_s->nr_redundant; in bch2_trigger_stripe() local 1536 le16_to_cpu(s->v.sectors) || in ec_stripe_key_init() 1932 if (!s->res.sectors) { in __bch2_ec_stripe_head_reserve() 2113 s64 sectors = 0; in bch2_invalidate_stripe_to_dev() local [all …]
|
| /linux-6.15/Documentation/admin-guide/device-mapper/ |
| H A D | dm-ebs.rst | 8 size. Its main purpose is to provide emulation of 512 byte sectors on 18 <dev path> <offset> <emulated sectors> [<underlying sectors>] 27 has to be a multiple of <emulated sectors>. 28 <emulated sectors>: 29 Number of sectors defining the logical block size to be emulated; 30 1, 2, 4, 8 sectors of 512 bytes supported. 34 <underlying sectors>: 35 Number of sectors defining the logical block size of <dev path>. 36 2^N supported, e.g. 8 = emulate 8 sectors of 512 bytes = 4KiB. 43 offset 1024 sectors with underlying devices block size automatically set: [all …]
|
| H A D | dm-integrity.rst | 68 dm-integrity won't read of write these sectors 77 not used and data sectors and integrity tags are written 96 data directly in the underlying device sectors. 183 512-byte sectors that corresponds to one bitmap bit. 231 2. provided data sectors - that is the number of sectors that the user 238 * reserved sectors 246 * log2(interleave sectors) 249 * provided data sectors - the number of sectors that this target 261 * log2(sectors per block) 277 * mac (8-bytes), all the macs in 8 metadata sectors form a [all …]
|
| /linux-6.15/drivers/target/ |
| H A D | target_core_sbc.c | 668 u32 sectors, bool is_write) in sbc_check_prot() argument 773 u32 sectors = 0; in sbc_parse_cdb() local 883 if (!sectors) { in sbc_parse_cdb() 911 sectors = cdb[13]; in sbc_parse_cdb() 915 if (sectors > 1) { in sbc_parse_cdb() 917 " than 1\n", sectors); in sbc_parse_cdb() 929 cmd->t_task_nolb = sectors; in sbc_parse_cdb() 983 if (!sectors) { in sbc_parse_cdb() 997 if (!sectors) { in sbc_parse_cdb() 1282 left = sectors * dev->prot_length; in sbc_dif_copy_prot() [all …]
|
| /linux-6.15/drivers/md/ |
| H A D | raid0.c | 66 sector_t curr_zone_end, sectors; in create_strip_zones() local 83 sectors = rdev1->sectors; in create_strip_zones() 85 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones() 103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones() 194 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones() 235 if (!smallest || rdev->sectors < smallest->sectors) { in create_strip_zones() 244 sectors = (smallest->sectors - zone->dev_start) * c; in create_strip_zones() 249 curr_zone_end += sectors; in create_strip_zones() 358 WARN_ONCE(sectors || raid_disks, in raid0_size() 594 unsigned sectors; in raid0_make_request() local [all …]
|
| H A D | md-linear.c | 55 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument 61 WARN_ONCE(sectors || raid_disks, in linear_size() 115 sector_t sectors; in linear_conf() local 125 sectors = rdev->sectors; in linear_conf() 126 sector_div(sectors, mddev->chunk_sectors); in linear_conf() 127 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf() 130 conf->array_sectors += rdev->sectors; in linear_conf() 142 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf() 147 conf->disks[i].rdev->sectors; in linear_conf() 243 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request() [all …]
|
| H A D | raid10.c | 726 int sectors = r10_bio->sectors; in read_balance() local 1139 sectors); in regular_request_wait() 1371 sectors = r10_bio->sectors; in raid10_write_request() 1538 r10_bio->sectors = sectors; in __make_request() 2388 int sectors = r10_bio->sectors; in sync_request_write() local 2486 int sectors = r10_bio->sectors; in fix_recovery_read_error() local 2550 sectors -= s; in fix_recovery_read_error() 2629 int sectors = r10_bio->sectors, slot = r10_bio->read_slot; in fix_read_error() local 2801 int sectors; in narrow_write_error() local 3796 if (!sectors) in raid10_size() [all …]
|
| H A D | raid1.c | 574 len = sectors; in align_to_barrier_unit_end() 2143 int sectors = r1_bio->sectors; in fix_sync_read_error() local 2159 while(sectors) { in fix_sync_read_error() 2207 sectors -= s; in fix_sync_read_error() 2242 sectors -= s; in fix_sync_read_error() 2404 int sectors = r1_bio->sectors; in fix_read_error() local 2414 while(sectors) { in fix_read_error() 2487 sectors -= s; in fix_read_error() 2511 int sectors; in narrow_write_error() local 2550 sectors, 0) in narrow_write_error() [all …]
|
| H A D | md.h | 133 sector_t sectors; /* Device size (in 512bytes sectors) */ member 295 static inline int is_badblock(struct md_rdev *rdev, sector_t s, sector_t sectors, in is_badblock() argument 300 sectors, in is_badblock() 310 int sectors) in rdev_has_badblock() argument 315 return is_badblock(rdev, s, sectors, &first_bad, &bad_sectors); in rdev_has_badblock() 318 extern bool rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 320 extern void rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 751 int (*resize) (struct mddev *mddev, sector_t sectors); 752 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks); 777 unsigned long *sectors); [all …]
|
| /linux-6.15/Documentation/block/ |
| H A D | stat.rst | 31 read sectors sectors number of sectors read 35 write sectors sectors number of sectors written 42 discard sectors sectors number of sectors discarded 67 read sectors, write sectors, discard_sectors 70 These values count the number of sectors read from, written to, or 71 discarded from this block device. The "sectors" in question are the 72 standard UNIX 512-byte sectors, not any device- or filesystem-specific
|
| /linux-6.15/include/linux/ |
| H A D | blk-integrity.h | 69 unsigned int sectors) in bio_integrity_intervals() argument 71 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals() 75 unsigned int sectors) in bio_integrity_bytes() argument 77 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes() 131 unsigned int sectors) in bio_integrity_intervals() argument 137 unsigned int sectors) in bio_integrity_bytes() argument
|
| H A D | badblocks.h | 51 int badblocks_check(struct badblocks *bb, sector_t s, sector_t sectors, 53 bool badblocks_set(struct badblocks *bb, sector_t s, sector_t sectors, 55 bool badblocks_clear(struct badblocks *bb, sector_t s, sector_t sectors);
|
| /linux-6.15/drivers/scsi/ |
| H A D | scsicam.c | 179 unsigned long heads, sectors, cylinders, temp; in setsize() local 182 sectors = 62L; /* Maximize sectors per track */ in setsize() 184 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize() 189 sectors = capacity / temp; /* Compute value for sectors per in setsize() 192 sectors++; /* Else, increment number of sectors */ in setsize() 193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() 201 *secs = (unsigned int) sectors; in setsize()
|
| /linux-6.15/drivers/mtd/ |
| H A D | ssfdc.c | 22 unsigned char sectors; member 317 ssfdc->sectors = 32; in ssfdcr_add_mtd() 318 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd() 320 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd() 323 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd() 325 (long)ssfdc->sectors); in ssfdcr_add_mtd() 328 (long)ssfdc->sectors; in ssfdcr_add_mtd() 411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo() 414 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo()
|
| /linux-6.15/drivers/usb/storage/ |
| H A D | datafab.c | 60 unsigned long sectors; /* total sector count */ member 138 u32 sectors) in datafab_read_data() argument 153 if (sectors > 0x0FFFFFFF) in datafab_read_data() 162 totallen = sectors * info->ssize; in datafab_read_data() 221 u32 sectors) in datafab_write_data() argument 237 if (sectors > 0x0FFFFFFF) in datafab_write_data() 246 totallen = sectors * info->ssize; in datafab_write_data() 420 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device() 582 info->sectors, info->ssize); in datafab_transport() 586 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | procfs-diskstats | 15 6 sectors read 19 10 sectors written 32 17 sectors discarded
|
| /linux-6.15/fs/hfsplus/ |
| H A D | btree.c | 76 u64 sectors, int file_id) in hfsplus_calc_btree_clump_size() argument 100 if (sectors < 0x200000) { in hfsplus_calc_btree_clump_size() 101 clump_size = sectors << 2; /* 0.8 % */ in hfsplus_calc_btree_clump_size() 106 for (i = 0, sectors = sectors >> 22; in hfsplus_calc_btree_clump_size() 107 sectors && (i < CLUMP_ENTRIES - 1); in hfsplus_calc_btree_clump_size() 108 ++i, sectors = sectors >> 1) { in hfsplus_calc_btree_clump_size()
|