Home
last modified time | relevance | path

Searched refs:block_bits (Results 1 – 14 of 14) sorted by relevance

/linux/fs/bcachefs/
H A Ddebug.c88 sectors = vstruct_blocks(n_ondisk, c->block_bits) << in bch2_btree_verify_replica()
89 c->block_bits; in bch2_btree_verify_replica()
95 sectors = vstruct_blocks(bne, c->block_bits) << in bch2_btree_verify_replica()
96 c->block_bits; in bch2_btree_verify_replica()
249 sectors = vstruct_sectors(n_ondisk, c->block_bits); in bch2_btree_node_ondisk_to_text()
274 sectors = vstruct_sectors(bne, c->block_bits); in bch2_btree_node_ondisk_to_text()
H A Dbtree_cache.h109 return btree_sectors(c) >> c->block_bits; in btree_blocks()
H A Dbtree_io.c1082 sectors = vstruct_sectors(b->data, c->block_bits); in bch2_btree_node_read_done()
1116 sectors = vstruct_sectors(bne, c->block_bits); in bch2_btree_node_read_done()
1394 offset += vstruct_sectors(bn, c->block_bits); in btree_node_sectors_written()
1399 offset += vstruct_sectors(bne, c->block_bits); in btree_node_sectors_written()
1493 sectors = vstruct_sectors(bn, c->block_bits); in CLOSURE_CALLBACK()
1498 sectors = vstruct_sectors(bne, c->block_bits); in CLOSURE_CALLBACK()
1515 sectors = vstruct_sectors(bne, c->block_bits); in CLOSURE_CALLBACK()
H A Djournal_io.c1048 sectors = vstruct_sectors(j, c->block_bits); in journal_read_bucket()
1336 prt_printf(&buf1, " size %zu", vstruct_sectors(&prev->j, c->block_bits)); in bch2_journal_read()
1483 unsigned sectors = vstruct_sectors(w->data, c->block_bits); in journal_write_alloc()
1716 unsigned sectors = vstruct_sectors(w->data, c->block_bits); in CLOSURE_CALLBACK()
1886 sectors = vstruct_sectors(jset, c->block_bits); in bch2_journal_write_prep()
H A Dio_misc.c143 unsigned max_sectors = KEY_SIZE_MAX & (~0 << c->block_bits); in bch2_fpunch_at()
H A Djournal.c269 sectors = vstruct_blocks_plus(buf->data, c->block_bits, in __journal_entry_close()
270 buf->u64s_reserved) << c->block_bits; in __journal_entry_close()
H A Dbcachefs.h788 unsigned short block_bits; /* ilog2(block_size) */ member
H A Dsuper.c863 c->block_bits = ilog2(block_sectors(c)); in bch2_fs_alloc()
/linux/drivers/md/bcache/
H A Dbcache.h557 unsigned short block_bits; member
763 ((unsigned int) (KEY_SIZE(&b->key) >> (b)->c->block_bits))
766 ((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits))
H A Dbtree.h192 return bset_sector_offset(&b->keys, i) >> b->c->block_bits; in bset_block_offset()
H A Djournal.c687 c->journal.blocks_free = ca->sb.bucket_size >> c->block_bits; in journal_reclaim()
H A Dsuper.c1880 c->block_bits = ilog2(sb->block_size); in bch_cache_set_alloc()
/linux/fs/iomap/
H A Dbuffered-io.c239 unsigned block_bits = inode->i_blkbits; in iomap_adjust_read_range() local
240 unsigned block_size = (1 << block_bits); in iomap_adjust_read_range()
244 unsigned first = poff >> block_bits; in iomap_adjust_read_range()
245 unsigned last = (poff + plen - 1) >> block_bits; in iomap_adjust_read_range()
281 unsigned end = offset_in_folio(folio, isize - 1) >> block_bits; in iomap_adjust_read_range()
/linux/fs/ocfs2/cluster/
H A Dheartbeat.c1570 unsigned int block_bits; in o2hb_region_block_bytes_store() local
1576 &block_bits); in o2hb_region_block_bytes_store()
1581 reg->hr_block_bits = block_bits; in o2hb_region_block_bytes_store()