Searched refs:bucket_size (Results 1 - 25 of 44) sorted by path

12

/linux-master/drivers/md/bcache/
H A Dalloc.c90 unsigned long next = c->nbuckets * c->cache->sb.bucket_size / 1024;
339 ca->sb.bucket_size, GFP_KERNEL);
449 SET_GC_SECTORS_USED(b, ca->sb.bucket_size);
585 ret->sectors_free = c->cache->sb.bucket_size;
H A Dbcache.h552 /* log2(bucket_size), in sectors */
690 * (sb.bucket_size / sb.block_size)
767 #define bucket_bytes(ca) ((ca)->sb.bucket_size << 9)
778 n = sb->bucket_size / PAGE_SECTORS;
809 return s & (c->cache->sb.bucket_size - 1);
H A Dbcache_ondisk.h192 __le16 bucket_size; /* sectors */ member in struct:cache_sb_disk::__anon608::__anon609
254 __u32 bucket_size; /* sectors */ member in struct:cache_sb::__anon613::__anon614
H A Dbtree.c160 iter->size = b->c->cache->sb.bucket_size / b->c->cache->sb.block_size;
H A Dbtree.h197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16);
H A Dextents.c57 if (KEY_SIZE(k) + r > c->cache->sb.bucket_size ||
78 if (KEY_SIZE(k) + r > c->cache->sb.bucket_size)
H A Djournal.c52 while (offset < ca->sb.bucket_size) {
53 reread: left = ca->sb.bucket_size - offset;
687 c->journal.blocks_free = ca->sb.bucket_size >> c->block_bits;
H A Dmovinggc.c209 reserve_sectors = ca->sb.bucket_size *
217 GC_SECTORS_USED(b) == ca->sb.bucket_size ||
H A Dsuper.c66 unsigned int bucket_size = le16_to_cpu(s->bucket_size); local
73 order = le16_to_cpu(s->bucket_size);
81 bucket_size = 1 << order;
83 bucket_size +=
88 return bucket_size;
99 sb->bucket_size = get_bucket_size(sb, s);
125 if (!is_power_of_2(sb->bucket_size))
129 if (sb->bucket_size < PAGE_SECTORS)
134 sb->bucket_size * s
[all...]
H A Dsysfs.c66 read_attribute(bucket_size); variable
731 sysfs_hprint(bucket_size, bucket_bytes(c->cache));
1036 sysfs_hprint(bucket_size, bucket_bytes(ca));
1121 n * ca->sb.bucket_size / (ARRAY_SIZE(q) + 1));
H A Dwriteback.c38 uint64_t cache_sectors = c->nbuckets * c->cache->sb.bucket_size -
108 div_s64((dirty_buckets * c->cache->sb.bucket_size), dirty);
/linux-master/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c1137 int bucket_size; local
1147 bucket_size = (burst + 255) >> 8;
1148 if (bucket_size > 65535)
1149 bucket_size = 65535;
1155 wrlp(mp, TX_BW_BURST, bucket_size);
1160 wrlp(mp, TX_BW_BURST_MOVED, bucket_size);
1169 int bucket_size; local
1175 bucket_size = (burst + 255) >> 8;
1176 if (bucket_size > 65535)
1177 bucket_size
[all...]
/linux-master/fs/bcachefs/
H A Dalloc_background.c1763 k.k->p.offset * ca->mi.bucket_size,
1764 ca->mi.bucket_size,
1884 bucket.offset * ca->mi.bucket_size,
1885 ca->mi.bucket_size,
2248 dev_reserve *= ca->mi.bucket_size;
2256 ca->mi.bucket_size);
2280 ret = min(ret, ca->mi.nbuckets * ca->mi.bucket_size);
H A Dalloc_background.h89 return d ? max(0, ca->mi.bucket_size - d) : 0;
115 return div_u64(d * (1ULL << 31), ca->mi.bucket_size);
H A Dalloc_foreground.c258 ob->sectors_free = ca->mi.bucket_size;
1454 ca->mi.bucket_size -
1533 ca->mi.bucket_size - ob->sectors_free, ca->mi.bucket_size);
H A Dbackpointers.c56 bkey_fsck_err_on((bp.v->bucket_offset >> MAX_EXTENT_COMPRESS_RATIO_SHIFT) >= ca->mi.bucket_size ||
H A Dbcachefs.h1209 return ca->mi.bucket_size << 9;
H A Dbcachefs_format.h580 __le16 bucket_size; /* sectors */ member in struct:bch_member
H A Dbcachefs_ioctl.h297 __u32 bucket_size; member in struct:bch_ioctl_dev_usage
316 __u32 bucket_size; member in struct:bch_ioctl_dev_usage_v2
H A Dbtree_gc.c1157 ca->mi.bucket_size,
H A Dbtree_node_scan.c197 bucket_offset + btree_sectors(c) <= ca->mi.bucket_size;
200 u64 cur_sector = bucket * ca->mi.bucket_size + bucket_offset;
201 u64 end_sector = ca->mi.nbuckets * ca->mi.bucket_size;
208 u64 sector = bucket * ca->mi.bucket_size + bucket_offset;
H A Dbuckets.c71 ca->mi.bucket_size;
311 fs_usage->b.hidden -= ca->mi.bucket_size;
313 fs_usage->b.hidden += ca->mi.bucket_size;
533 if (bch2_fs_inconsistent_on((u64) g->dirty_sectors + sectors > ca->mi.bucket_size, c,
1239 BCH_DATA_journal, ca->mi.bucket_size);
H A Dbuckets.h17 return div_u64(s, ca->mi.bucket_size);
22 return ((sector_t) b) * ca->mi.bucket_size;
29 div_u64_rem(s, ca->mi.bucket_size, &remainder);
36 return div_u64_rem(s, ca->mi.bucket_size, offset);
H A Dchardev.c609 arg.bucket_size = ca->mi.bucket_size;
650 arg.bucket_size = ca->mi.bucket_size;
H A Dec.c1325 unsigned offset = ca->mi.bucket_size - ob->sectors_free;
1338 ob->bucket * ca->mi.bucket_size + offset,
1531 offset = ca->mi.bucket_size - ob->sectors_free;
1554 sizes[nr++] = ca->mi.bucket_size;
1664 if (ca->mi.bucket_size == h->blocksize)

Completed in 689 milliseconds

12