Home
last modified time | relevance | path

Searched refs:PAGE_SECTORS (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/block/
H A Dbrd.c108 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup()
131 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd()
163 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_from_brd()
227 sector_t aligned_sector = (sector + PAGE_SECTORS) & ~PAGE_SECTORS; in brd_do_discard()
238 aligned_sector += PAGE_SECTORS; in brd_do_discard()
/linux/fs/squashfs/
H A Dblock.c119 bio_trim(bio, start_idx * PAGE_SECTORS, in squashfs_bio_read_cached()
120 (end_idx - start_idx) * PAGE_SECTORS); in squashfs_bio_read_cached()
134 bio_trim(bio, start_idx * PAGE_SECTORS, in squashfs_bio_read_cached()
135 (end_idx - start_idx) * PAGE_SECTORS); in squashfs_bio_read_cached()
/linux/include/linux/
H A Dblk_types.h38 #define PAGE_SECTORS (1 << PAGE_SECTORS_SHIFT) macro
39 #define SECTOR_MASK (PAGE_SECTORS - 1)
/linux/drivers/md/bcache/
H A Dmovinggc.c83 DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS), 0); in moving_init()
149 DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS)), in read_moving()
H A Dbcache.h766 ((unsigned int) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits))
776 __rounddown_pow_of_two(USHRT_MAX) / PAGE_SECTORS, in meta_bucket_pages()
779 n = sb->bucket_size / PAGE_SECTORS; in meta_bucket_pages()
H A Dwriteback.c335 DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), 0); in dirty_init()
540 DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS)), in read_dirty()
H A Djournal.c54 len = min_t(unsigned int, left, PAGE_SECTORS << JSET_BITS); in journal_read_bucket()
871 PAGE_SECTORS << JSET_BITS)) in journal_wait_for_write()
H A Dsuper.c121 if (sb->block_size > PAGE_SECTORS) in read_super_common()
129 if (sb->bucket_size < PAGE_SECTORS) in read_super_common()
512 size = meta_bucket_pages(&ca->sb) * PAGE_SECTORS; in __uuid_write()
1910 iter_size = ((meta_bucket_pages(sb) * PAGE_SECTORS) / sb->block_size) * in bch_cache_set_alloc()
H A Dbtree.c545 return ilog2(KEY_SIZE(k) / PAGE_SECTORS ?: 1); in btree_order()
1136 SET_KEY_SIZE(&k.key, c->btree_pages * PAGE_SECTORS); in __bch_btree_node_alloc()
/linux/fs/bcachefs/
H A Dfs-io-pagecache.h26 return PAGE_SECTORS << folio_order(folio); in folio_sectors()
H A Dio_read.c176 unsigned pages = DIV_ROUND_UP(sectors, PAGE_SECTORS); in __promote_alloc()
913 if (pick.crc.compressed_size > orig->bio.bi_vcnt * PAGE_SECTORS) { in __bch2_read_extent()
982 DIV_ROUND_UP(sectors, PAGE_SECTORS), in __bch2_read_extent()
H A Dsuper-io.c373 if (block_size > PAGE_SECTORS) { in bch2_sb_validate()
375 block_size, PAGE_SECTORS); in bch2_sb_validate()
H A Dcompress.c231 BUG_ON(DIV_ROUND_UP(crc->live_size, PAGE_SECTORS) > bio->bi_max_vecs); in bch2_bio_uncompress_inplace()
H A Dfs-io.c253 POS(inode->v.i_ino, (index << PAGE_SECTORS_SHIFT) + PAGE_SECTORS)); in __bch2_truncate_folio()
H A Dmove.c283 pages = DIV_ROUND_UP(sectors, PAGE_SECTORS); in bch2_move_extent()
/linux/drivers/md/
H A Ddm-stripe.c309 stripe_map_sector(sc, *pgoff * PAGE_SECTORS, &stripe, &dev_sector); in stripe_dax_pgoff()
/linux/block/
H A Dblk-settings.c286 if (WARN_ON_ONCE(lim->max_hw_sectors < PAGE_SECTORS)) in blk_validate_limits()