Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 271) sorted by relevance

1234567891011

/linux/block/
A Dbadblocks.c994 len = sectors; in _badblocks_set()
1013 sectors -= len; in _badblocks_set()
1129 p[prev + 1] = BB_MAKE(s + sectors, end - s - sectors, ack); in front_splitting_clear()
1130 return sectors; in front_splitting_clear()
1175 len = sectors; in _badblocks_clear()
1201 len = sectors; in _badblocks_clear()
1209 len = sectors; in _badblocks_clear()
1247 len = sectors; in _badblocks_clear()
1253 sectors -= len; in _badblocks_clear()
1308 len = sectors; in _badblocks_check()
[all …]
/linux/fs/bcachefs/
A Dfs-io.h58 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 …]
A Dbuckets.h156 EBUG_ON(sectors < 0); in ptr_disk_sectors()
161 : sectors; in ptr_disk_sectors()
344 if (res->sectors) { in bch2_disk_reservation_put()
345 this_cpu_sub(*c->online_reserved, res->sectors); in bch2_disk_reservation_put()
346 res->sectors = 0; in bch2_disk_reservation_put()
366 if (sectors > old) in bch2_disk_reservation_add()
369 new = old - sectors; in bch2_disk_reservation_add()
372 this_cpu_add(*c->online_reserved, sectors); in bch2_disk_reservation_add()
373 res->sectors += sectors; in bch2_disk_reservation_add()
384 .sectors = 0, in bch2_disk_reservation_init()
[all …]
A Dbuckets.c93 usage->d[i].sectors, in bch2_dev_usage_to_text()
401 BUG_ON(!sectors); in bch2_bucket_ref_update()
565 s64 *sectors, in bch2_trigger_pointer() argument
632 s64 sectors, in bch2_trigger_stripe_ptr() argument
658 sectors); in bch2_trigger_stripe_ptr()
926 sectors = -sectors; in __trigger_reservation()
1061 unsigned sectors = in bch2_trans_mark_metadata_sectors() local
1075 start += sectors; in bch2_trans_mark_metadata_sectors()
1193 res->sectors += sectors; in __bch2_disk_reservation_add()
1206 sectors = min(sectors, sectors_available); in __bch2_disk_reservation_add()
[all …]
A Dfs-io-pagecache.c162 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()
749 unsigned i, sectors; in folio_hole_offset() local
[all …]
A Dmovinggc.c34 size_t sectors; member
69 list->sectors += b.sectors; in move_bucket_in_flight_add()
100 b->sectors = bch2_bucket_sectors_dirty(*a); in bch2_bucket_is_movable()
130 list->sectors -= i->bucket.sectors; in move_buckets_wait()
156 size_t saw = 0, in_flight = 0, not_movable = 0, sectors = 0; in bch2_copygc_get_buckets() local
191 sectors += b.sectors; in bch2_copygc_get_buckets()
200 buckets_in_flight->nr, buckets_in_flight->sectors, in bch2_copygc_get_buckets()
201 saw, in_flight, not_movable, buckets->nr, sectors, nr_to_get, ret); in bch2_copygc_get_buckets()
A Dalloc_foreground.h183 struct bkey_i *k, unsigned sectors, in bch2_alloc_sectors_append_ptrs_inlined() argument
189 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
190 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
191 wp->sectors_allocated += sectors; in bch2_alloc_sectors_append_ptrs_inlined()
203 BUG_ON(sectors > ob->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
204 ob->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
A Dfs-io.c151 inode->v.i_blocks += sectors; in __bch2_i_sectors_acct()
156 sectors > 0) { in __bch2_i_sectors_acct()
157 BUG_ON(sectors > quota_res->sectors); in __bch2_i_sectors_acct()
160 quota_res->sectors -= sectors; in __bch2_i_sectors_acct()
161 inode->ei_quota_reserved -= sectors; in __bch2_i_sectors_acct()
594 unsigned sectors; in __bchfs_fallocate() local
658 sectors = hole_end - hole_start; in __bchfs_fallocate()
662 &quota_res, sectors, true); in __bchfs_fallocate()
806 u64 sectors = end - start; in quota_reserve_range() local
817 BUG_ON(s > sectors); in quota_reserve_range()
[all …]
A Dec.h28 return DIV_ROUND_UP(le16_to_cpu(s->sectors), in stripe_csums_per_device()
98 unsigned sectors) in __bch2_ptr_matches_stripe() argument
105 data_ptr->offset < stripe_ptr->offset + sectors; in __bch2_ptr_matches_stripe()
119 le16_to_cpu(s->sectors)); in bch2_ptr_matches_stripe()
133 m->sectors); in bch2_ptr_matches_stripe_m()
A Dio_misc.c26 u64 sectors, in bch2_extent_fallocate() argument
51 sectors = min_t(u64, sectors, k.k->p.offset - iter->pos.offset); in bch2_extent_fallocate()
59 ret = bch2_disk_reservation_get(c, &disk_res, sectors, new_replicas, 0); in bch2_extent_fallocate()
71 bch2_key_resize(&reservation->k, sectors); in bch2_extent_fallocate()
98 sectors = min_t(u64, sectors, wp->sectors_free); in bch2_extent_fallocate()
99 sectors_allocated = sectors; in bch2_extent_fallocate()
101 bch2_key_resize(&e->k, sectors); in bch2_extent_fallocate()
104 bch2_alloc_sectors_append_ptrs(c, wp, &e->k_i, sectors, false); in bch2_extent_fallocate()
/linux/Documentation/admin-guide/device-mapper/
A Ddm-ebs.rst8 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 …]
A Ddm-integrity.rst68 dm-integrity won't read of write these sectors
77 not used and data sectors and integrity tags are written
106 The number of interleaved sectors. This values is rounded down to
178 512-byte sectors that corresponds to one bitmap bit.
226 2. provided data sectors - that is the number of sectors that the user
233 * reserved sectors
241 * log2(interleave sectors)
244 * provided data sectors - the number of sectors that this target
256 * log2(sectors per block)
272 * mac (8-bytes), all the macs in 8 metadata sectors form a
[all …]
/linux/drivers/target/
A Dtarget_core_sbc.c668 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/drivers/md/
A Draid0.c66 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()
589 unsigned sectors; in raid0_make_request() local
[all …]
A Draid1.c576 len = sectors; in align_to_barrier_unit_end()
2117 int sectors = r1_bio->sectors; in fix_sync_read_error() local
2133 while(sectors) { in fix_sync_read_error()
2186 sectors -= s; in fix_sync_read_error()
2221 sectors -= s; in fix_sync_read_error()
2372 int sectors = r1_bio->sectors; in fix_read_error() local
2382 while(sectors) { in fix_read_error()
2455 sectors -= s; in fix_read_error()
2479 int sectors; in narrow_write_error() local
2518 sectors, 0) in narrow_write_error()
[all …]
A Draid10.c730 int sectors = r10_bio->sectors; in read_balance() local
1143 sectors); in regular_request_wait()
1375 sectors = r10_bio->sectors; in raid10_write_request()
1516 r10_bio->sectors = sectors; in __make_request()
2356 int sectors = r10_bio->sectors; in sync_request_write() local
2454 int sectors = r10_bio->sectors; in fix_recovery_read_error() local
2518 sectors -= s; in fix_recovery_read_error()
2597 int sectors = r10_bio->sectors, slot = r10_bio->read_slot; in fix_read_error() local
2769 int sectors; in narrow_write_error() local
3769 if (!sectors) in raid10_size()
[all …]
/linux/Documentation/block/
A Dstat.rst31 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/include/linux/
A Dblk-integrity.h69 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()
132 unsigned int sectors) in bio_integrity_intervals() argument
138 unsigned int sectors) in bio_integrity_bytes() argument
A Dbadblocks.h51 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
53 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
55 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
/linux/drivers/scsi/
A Dscsicam.c179 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/drivers/mtd/
A Dssfdc.c22 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/drivers/usb/storage/
A Ddatafab.c60 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/Documentation/ABI/testing/
A Dprocfs-diskstats15 6 sectors read
19 10 sectors written
32 17 sectors discarded
/linux/fs/hfsplus/
A Dbtree.c76 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()
/linux/drivers/md/bcache/
A Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument
93 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
631 unsigned int sectors, in bch_alloc_sectors() argument
679 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
681 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
682 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
693 b->sectors_free -= sectors; in bch_alloc_sectors()
696 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
698 atomic_long_add(sectors, in bch_alloc_sectors()

Completed in 58 milliseconds

1234567891011