Home
last modified time | relevance | path

Searched refs:block_bytes (Results 1 – 13 of 13) sorted by relevance

/fs/bcachefs/
A Dfs-io-pagecache.c420 for (i = round_down(offset, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
421 i < round_up(offset + len, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
436 for (i = round_down(offset, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
437 i < round_up(offset + len, block_bytes(c)) >> 9; in __bch2_folio_reservation_get()
445 unsigned reserved_offset = round_down(i << 9, block_bytes(c)); in __bch2_folio_reservation_get()
528 round_up((u64) i_size_read(&inode->v), block_bytes(c))); in bch2_set_folio_dirty()
534 for (i = round_down(offset, block_bytes(c)) >> 9; in bch2_set_folio_dirty()
535 i < round_up(offset + len, block_bytes(c)) >> 9; in bch2_set_folio_dirty()
610 loff_t file_offset = round_down(vmf->pgoff << PAGE_SHIFT, block_bytes(c)); in bch2_page_mkwrite()
612 unsigned len = max(PAGE_SIZE, block_bytes(c)); in bch2_page_mkwrite()
A Dfs-io.c340 for (i = round_up(start_offset, block_bytes(c)) >> 9; in __bch2_truncate_folio()
341 i < round_down(end_offset, block_bytes(c)) >> 9; in __bch2_truncate_folio()
559 u64 block_start = round_up(offset, block_bytes(c)); in bchfs_fpunch()
560 u64 block_end = round_down(end, block_bytes(c)); in bchfs_fpunch()
603 if ((offset | len) & (block_bytes(c) - 1)) in bchfs_fcollapse_finsert()
766 u64 block_end = round_up(end, block_bytes(c)); in bchfs_fallocate()
785 block_start = round_up(offset, block_bytes(c)); in bchfs_fallocate()
786 block_end = round_down(end, block_bytes(c)); in bchfs_fallocate()
898 if ((pos_src & (block_bytes(c) - 1)) || in bch2_remap_file_range()
899 (pos_dst & (block_bytes(c) - 1))) in bch2_remap_file_range()
[all …]
A Dcompress.c471 if (*src_len <= block_bytes(c)) { in __bio_compress()
501 *src_len = round_down(*src_len, block_bytes(c)); in __bio_compress()
510 if (round_up(*dst_len, block_bytes(c)) >= *src_len) in __bio_compress()
513 pad = round_up(*dst_len, block_bytes(c)) - *dst_len; in __bio_compress()
524 BUG_ON(*dst_len & (block_bytes(c) - 1)); in __bio_compress()
525 BUG_ON(*src_len & (block_bytes(c) - 1)); in __bio_compress()
A Dbset.h258 unsigned block_bytes) in bset_next_set() argument
262 EBUG_ON(!is_power_of_2(block_bytes)); in bset_next_set()
264 return ((void *) i) + round_up(vstruct_bytes(i), block_bytes); in bset_next_set()
A Dfs-io-direct.c93 shorten = iov_iter_count(iter) - round_up(ret, block_bytes(c)); in bch2_direct_IO_read()
498 unaligned = bio->bi_iter.bi_size & (block_bytes(c) - 1); in bch2_dio_write_loop()
627 if (unlikely((req->ki_pos|iter->count) & (block_bytes(c) - 1))) { in bch2_direct_write()
A Dfs.c1190 stat->blksize = block_bytes(c); in bch2_getattr()
1203 stat->dio_offset_align = block_bytes(c); in bch2_getattr()
2515 sb->s_blocksize = block_bytes(c); in bch2_fs_get_tree()
2516 sb->s_blocksize_bits = ilog2(block_bytes(c)); in bch2_fs_get_tree()
A Dio_misc.c290 POS(inum.inum, round_up(new_i_size, block_bytes(c)) >> 9), in __bch2_resume_logged_op_truncate()
A Dbcachefs.h1200 static inline unsigned block_bytes(const struct bch_fs *c) in block_bytes() function
A Dbtree_io.c1267 bne = (void *) bne + block_bytes(c)) in bch2_btree_node_read_done()
2429 bytes = round_up(bytes, block_bytes(c)); in __bch2_btree_node_write()
2465 sectors_to_write = round_up(bytes_to_write, block_bytes(c)) >> 9; in __bch2_btree_node_write()
A Dio_write.c1717 data_len <= min(block_bytes(c) / 2, 1024U)) { in CLOSURE_CALLBACK()
A Dbtree_update_interior.c984 unsigned sectors = round_up(bytes, block_bytes(c)) >> 9; in bch2_btree_update_add_new_node()
A Dfsck.c1915 u64 last_block = round_up(i->inode.bi_size, block_bytes(c)) >> 9; in check_extent()
/fs/ocfs2/cluster/
A Dheartbeat.c1571 unsigned long block_bytes; in o2hb_region_block_bytes_store() local
1577 status = o2hb_read_block_input(reg, page, &block_bytes, in o2hb_region_block_bytes_store()
1582 reg->hr_block_bytes = (unsigned int)block_bytes; in o2hb_region_block_bytes_store()
1930 CONFIGFS_ATTR(o2hb_region_, block_bytes);

Completed in 51 milliseconds