Home
last modified time | relevance | path

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

1234567891011

/linux/block/
H 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/
H 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 …]
H A Dbuckets.c30 s64 sectors) in fs_usage_data_type_to_base() argument
324 s64 sectors) in __update_replicas() argument
433 s64 sectors) in bch2_update_replicas_list() argument
440 if (!sectors) in bch2_update_replicas_list()
738 BUG_ON(!sectors); in bch2_bucket_ref_update()
986 s64 *sectors, in bch2_trigger_pointer() argument
1041 s64 sectors, in bch2_trigger_stripe_ptr() argument
1067 sectors); in bch2_trigger_stripe_ptr()
1239 sectors = -sectors; in __trigger_reservation()
1517 res->sectors += sectors; in __bch2_disk_reservation_add()
[all …]
H A Dbuckets.h153 EBUG_ON(sectors < 0); in ptr_disk_sectors()
158 : sectors; in ptr_disk_sectors()
404 if (res->sectors) { in bch2_disk_reservation_put()
406 res->sectors = 0; in bch2_disk_reservation_put()
417 u64 sectors, int flags) in bch2_disk_reservation_add() argument
424 if (sectors > old) in bch2_disk_reservation_add()
427 new = old - sectors; in bch2_disk_reservation_add()
430 this_cpu_add(*c->online_reserved, sectors); in bch2_disk_reservation_add()
431 res->sectors += sectors; in bch2_disk_reservation_add()
442 .sectors = 0, in bch2_disk_reservation_init()
[all …]
H 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()
393 for (i = 0; i < sectors; i++) in bch2_get_folio_disk_reservation()
407 for (i = 0; i < sectors; i++) in bch2_get_folio_disk_reservation()
456 .sectors = disk_sectors in bch2_folio_reservation_get()
482 for (i = 0; i < sectors; i++) { in bch2_clear_folio_bits()
523 sectors = min_t(unsigned, sectors, res->disk.sectors); in bch2_set_folio_dirty()
526 res->disk.sectors -= sectors; in bch2_set_folio_dirty()
728 unsigned i, sectors; in folio_hole_offset() local
[all …]
H A Dmovinggc.c34 size_t sectors; member
68 list->sectors += b.sectors; in move_bucket_in_flight_add()
94 b->sectors = bch2_bucket_sectors_dirty(*a); in bch2_bucket_is_movable()
123 list->sectors -= i->bucket.sectors; in move_buckets_wait()
149 size_t saw = 0, in_flight = 0, not_movable = 0, sectors = 0; in bch2_copygc_get_buckets() local
184 sectors += b.sectors; in bch2_copygc_get_buckets()
193 buckets_in_flight->nr, buckets_in_flight->sectors, in bch2_copygc_get_buckets()
194 saw, in_flight, not_movable, buckets->nr, sectors, nr_to_get, ret); in bch2_copygc_get_buckets()
H A Dalloc_foreground.h182 struct bkey_i *k, unsigned sectors, in bch2_alloc_sectors_append_ptrs_inlined() argument
188 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
189 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
190 wp->sectors_allocated += sectors; in bch2_alloc_sectors_append_ptrs_inlined()
202 BUG_ON(sectors > ob->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
203 ob->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
H 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()
606 unsigned sectors; in __bchfs_fallocate() local
664 sectors = hole_end - hole_start; in __bchfs_fallocate()
668 &quota_res, sectors, true); in __bchfs_fallocate()
813 u64 sectors = end - start; in quota_reserve_range() local
832 BUG_ON(s > sectors); in quota_reserve_range()
[all …]
H A Dec.h29 return DIV_ROUND_UP(le16_to_cpu(s->sectors), in stripe_csums_per_device()
99 unsigned sectors) in __bch2_ptr_matches_stripe() argument
104 data_ptr->offset < stripe_ptr->offset + sectors; in __bch2_ptr_matches_stripe()
118 le16_to_cpu(s->sectors)); in bch2_ptr_matches_stripe()
132 m->sectors); in bch2_ptr_matches_stripe_m()
H 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/
H 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 …]
H 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/
H 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/
H 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()
595 unsigned sectors; in raid0_make_request() local
[all …]
H A Draid1.c574 len = sectors; in align_to_barrier_unit_end()
2125 int sectors = r1_bio->sectors; in fix_sync_read_error() local
2141 while(sectors) { in fix_sync_read_error()
2194 sectors -= s; in fix_sync_read_error()
2229 sectors -= s; in fix_sync_read_error()
2380 int sectors = r1_bio->sectors; in fix_read_error() local
2390 while(sectors) { in fix_read_error()
2463 sectors -= s; in fix_read_error()
2487 int sectors; in narrow_write_error() local
2526 sectors, 0) in narrow_write_error()
[all …]
H A Draid10.c729 int sectors = r10_bio->sectors; in read_balance() local
1142 sectors); in regular_request_wait()
1374 sectors = r10_bio->sectors; in raid10_write_request()
1514 r10_bio->sectors = sectors; in __make_request()
2358 int sectors = r10_bio->sectors; in sync_request_write() local
2456 int sectors = r10_bio->sectors; in fix_recovery_read_error() local
2520 sectors -= s; in fix_recovery_read_error()
2599 int sectors = r10_bio->sectors, slot = r10_bio->read_slot; in fix_read_error() local
2771 int sectors; in narrow_write_error() local
3771 if (!sectors) in raid10_size()
[all …]
/linux/Documentation/block/
H 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/drivers/scsi/
H 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/include/linux/
H A Dblk-integrity.h86 unsigned int sectors) in bio_integrity_intervals() argument
88 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals()
92 unsigned int sectors) in bio_integrity_bytes() argument
94 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
155 unsigned int sectors) in bio_integrity_intervals() argument
161 unsigned int sectors) in bio_integrity_bytes() argument
H 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/mtd/
H 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/
H 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/
H A Dprocfs-diskstats15 6 sectors read
19 10 sectors written
32 17 sectors discarded
/linux/drivers/md/bcache/
H 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()
601 unsigned int sectors, in bch_alloc_sectors() argument
649 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
651 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
652 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
663 b->sectors_free -= sectors; in bch_alloc_sectors()
666 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
668 atomic_long_add(sectors, in bch_alloc_sectors()
/linux/fs/hfsplus/
H 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()

1234567891011