/linux-6.12.1/include/linux/ |
D | quotaops.h | 326 return dquot_alloc_space_nodirty(inode, nr << inode->i_blkbits); in dquot_alloc_block_nodirty() 331 dquot_alloc_space_nofail(inode, nr << inode->i_blkbits); in dquot_alloc_block_nofail() 336 return dquot_alloc_space(inode, nr << inode->i_blkbits); in dquot_alloc_block() 341 return __dquot_alloc_space(inode, nr << inode->i_blkbits, 0); in dquot_prealloc_block_nodirty() 356 return __dquot_alloc_space(inode, nr << inode->i_blkbits, in dquot_reserve_block() 362 dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); in dquot_claim_block() 368 dquot_reclaim_space_nodirty(inode, nr << inode->i_blkbits); in dquot_reclaim_block() 385 dquot_free_space_nodirty(inode, nr << inode->i_blkbits); in dquot_free_block_nodirty() 390 dquot_free_space(inode, nr << inode->i_blkbits); in dquot_free_block() 396 __dquot_free_space(inode, nr << inode->i_blkbits, DQUOT_SPACE_RESERVE); in dquot_release_reservation_block()
|
/linux-6.12.1/fs/ext4/ |
D | move_extent.c | 188 block = folio_pos(folio) >> inode->i_blkbits; in mext_page_mkuptodate() 272 int from = data_offset_in_page << orig_inode->i_blkbits; in move_extent_per_page() 273 int blocks_per_page = PAGE_SIZE >> orig_inode->i_blkbits; in move_extent_per_page() 298 ((orig_inode->i_size - 1) >> orig_inode->i_blkbits)) { in move_extent_per_page() 309 ((block_len_in_page - 1) << orig_inode->i_blkbits); in move_extent_per_page() 311 data_size = block_len_in_page << orig_inode->i_blkbits; in move_extent_per_page() 383 block_len_in_page << orig_inode->i_blkbits; in move_extent_per_page() 392 1 << orig_inode->i_blkbits, 0); in move_extent_per_page() 466 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() 513 if ((orig_start & ~(PAGE_MASK >> orig_inode->i_blkbits)) != in mext_check_arguments() [all …]
|
D | inode.c | 720 (loff_t)map->m_lblk << inode->i_blkbits; in ext4_map_blocks() 721 loff_t length = (loff_t)map->m_len << inode->i_blkbits; in ext4_map_blocks() 779 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block() 1569 start = index << (PAGE_SHIFT - inode->i_blkbits); in mpage_release_unused_pages() 1570 last = end << (PAGE_SHIFT - inode->i_blkbits); in mpage_release_unused_pages() 2013 >> inode->i_blkbits; in mpage_process_page_bufs() 2071 int blkbits = mpd->inode->i_blkbits; in mpage_process_folio() 2137 int bpp_bits = PAGE_SHIFT - inode->i_blkbits; in mpage_map_and_submit_buffers() 2259 io_end_vec->offset = ((loff_t)map->m_lblk) << inode->i_blkbits; in mpage_map_and_submit_extent() 2416 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() [all …]
|
/linux-6.12.1/fs/jfs/ |
D | jfs_metapage.c | 108 l2mp_blocks = L2PSIZE - folio->mapping->host->i_blkbits; in insert_metapage() 120 int l2mp_blocks = L2PSIZE - folio->mapping->host->i_blkbits; in remove_metapage() 248 inode->i_blkbits; in metapage_get_blocks() 362 page_start = folio_pos(folio) >> inode->i_blkbits; in metapage_write_folio() 386 block_offset = offset >> inode->i_blkbits; in metapage_write_folio() 393 bio_bytes += len << inode->i_blkbits; in metapage_write_folio() 410 xlen = (folio_size(folio) - offset) >> inode->i_blkbits; in metapage_write_folio() 424 bio->bi_iter.bi_sector = pblock << (inode->i_blkbits - 9); in metapage_write_folio() 430 bio_bytes = len << inode->i_blkbits; in metapage_write_folio() 493 page_start = folio_pos(folio) >> inode->i_blkbits; in metapage_read_folio() [all …]
|
D | inode.c | 207 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() 237 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 254 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
|
/linux-6.12.1/fs/udf/ |
D | directory.c | 42 if (len > 1 << iter->dir->i_blkbits) { in udf_verify_fi() 70 u32 blksize = 1 << iter->dir->i_blkbits; in udf_copy_fi() 127 unsigned int ralen = 16 >> (iter->dir->i_blkbits - 9); in udf_readahead_dir() 135 if (iter->loffset + ralen > (iter->elen >> iter->dir->i_blkbits)) in udf_readahead_dir() 136 ralen = (iter->elen >> iter->dir->i_blkbits) - iter->loffset; in udf_readahead_dir() 173 if (iter->loffset < DIV_ROUND_UP(iter->elen, 1<<iter->dir->i_blkbits)) in udf_fiiter_advance_blk() 196 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_load_bhs() 269 err = inode_bmap(dir, iter->pos >> dir->i_blkbits, &iter->epos, in udf_fiiter_init() 293 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_advance() 412 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_write_fi() [all …]
|
/linux-6.12.1/fs/gfs2/ |
D | inode.h | 47 inode->i_blocks = blocks << (inode->i_blkbits - 9); in gfs2_set_inode_blocks() 52 return inode->i_blocks >> (inode->i_blkbits - 9); in gfs2_get_inode_blocks() 57 change <<= inode->i_blkbits - 9; in gfs2_add_inode_blocks() 81 if (size & (BIT(inode->i_blkbits) - 1)) in gfs2_check_internal_file_size()
|
D | bmap.c | 75 BIT(inode->i_blkbits), BIT(BH_Uptodate)); in gfs2_unstuffer_folio() 600 iomap->length = hole_size << inode->i_blkbits; in gfs2_hole_size() 669 size_t dblks = iomap->length >> inode->i_blkbits; in __gfs2_iomap_alloc() 765 iomap->addr = bn << inode->i_blkbits; in __gfs2_iomap_alloc() 774 iomap->length = (u64)dblks << inode->i_blkbits; in __gfs2_iomap_alloc() 886 iomap->addr = (ip->i_no_addr << inode->i_blkbits) + in __gfs2_iomap_get() 894 lblock = pos >> inode->i_blkbits; in __gfs2_iomap_get() 895 iomap->offset = lblock << inode->i_blkbits; in __gfs2_iomap_get() 896 lblock_stop = (pos + length - 1) >> inode->i_blkbits; in __gfs2_iomap_get() 898 iomap->length = len << inode->i_blkbits; in __gfs2_iomap_get() [all …]
|
/linux-6.12.1/fs/crypto/ |
D | bio.c | 52 const unsigned int blockbits = inode->i_blkbits; in fscrypt_zeroout_range_inline_crypt() 119 u64 du_index = (u64)lblk << (inode->i_blkbits - du_bits); in fscrypt_zeroout_range() 120 u64 du_remaining = (u64)len << (inode->i_blkbits - du_bits); in fscrypt_zeroout_range() 121 sector_t sector = pblk << (inode->i_blkbits - SECTOR_SHIFT); in fscrypt_zeroout_range()
|
D | inline_crypt.c | 301 *lblk_num_ret = ((u64)folio->index << (PAGE_SHIFT - inode->i_blkbits)) + in bh_get_inode_and_lblk_num() 302 (bh_offset(bh) >> inode->i_blkbits); in bh_get_inode_and_lblk_num()
|
D | fscrypt_private.h | 173 return policy->log2_data_unit_size ?: inode->i_blkbits; in fscrypt_policy_v2_du_bits() 182 return inode->i_blkbits; in fscrypt_policy_du_bits()
|
D | keysetup.c | 588 inode->i_blkbits - crypt_info->ci_data_unit_bits; in fscrypt_setup_encryption_info() 720 if (WARN_ON_ONCE(inode->i_blkbits == 0)) in fscrypt_prepare_new_inode()
|
/linux-6.12.1/fs/ |
D | stack.c | 72 dest->i_blkbits = src->i_blkbits; in fsstack_copy_attr_all()
|
D | direct-io.c | 612 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks() local 628 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks() 644 if (i_size && fs_startblk <= (i_size - 1) >> i_blkbits) in get_more_blocks() 908 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO() local 952 map_bh->b_size >> i_blkbits); in do_direct_IO() 1110 unsigned i_blkbits = READ_ONCE(inode->i_blkbits); in __blockdev_direct_IO() local 1111 unsigned blkbits = i_blkbits; in __blockdev_direct_IO() 1215 sdio.blkfactor = i_blkbits - blkbits; in __blockdev_direct_IO()
|
D | mpage.c | 110 if (inode->i_blkbits == PAGE_SHIFT && in map_buffer_to_folio() 155 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() 458 const unsigned blkbits = inode->i_blkbits; in __mpage_writepage()
|
/linux-6.12.1/fs/iomap/ |
D | fiemap.c | 103 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap() 107 const unsigned int blkshift = mapping->host->i_blkbits - SECTOR_SHIFT; in iomap_bmap()
|
D | buffered-io.c | 63 unsigned int first_blk = off >> inode->i_blkbits; in ifs_set_range_uptodate() 64 unsigned int last_blk = (off + len - 1) >> inode->i_blkbits; in ifs_set_range_uptodate() 102 offset_in_folio(folio, *range_start) >> inode->i_blkbits; in ifs_find_dirty_range() 104 offset_in_folio(folio, range_end) >> inode->i_blkbits, in ifs_find_dirty_range() 118 *range_start = folio_pos(folio) + (start_blk << inode->i_blkbits); in ifs_find_dirty_range() 119 return nblks << inode->i_blkbits; in ifs_find_dirty_range() 140 unsigned int first_blk = (off >> inode->i_blkbits); in ifs_clear_range_dirty() 141 unsigned int last_blk = (off + len - 1) >> inode->i_blkbits; in ifs_clear_range_dirty() 163 unsigned int first_blk = (off >> inode->i_blkbits); in ifs_set_range_dirty() 164 unsigned int last_blk = (off + len - 1) >> inode->i_blkbits; in ifs_set_range_dirty() [all …]
|
/linux-6.12.1/fs/nilfs2/ |
D | mdt.c | 358 pgoff_t index = block >> (PAGE_SHIFT - inode->i_blkbits); in nilfs_mdt_forget_block() 373 (PAGE_SHIFT - inode->i_blkbits); in nilfs_mdt_forget_block() 562 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() 603 n = bh_offset(bh) >> inode->i_blkbits; in nilfs_mdt_get_frozen_buffer()
|
D | alloc.h | 28 return 1UL << (inode->i_blkbits + 3 /* log2(8 = CHAR_BITS) */); in nilfs_palloc_entries_per_group()
|
D | page.c | 51 int blkbits = inode->i_blkbits; in nilfs_grab_buffer() 496 index = start_blk >> (PAGE_SHIFT - inode->i_blkbits); in nilfs_find_uncommitted_extent() 515 b = folio->index << (PAGE_SHIFT - inode->i_blkbits); in nilfs_find_uncommitted_extent()
|
D | file.c | 106 nilfs_set_file_dirty(inode, 1 << (PAGE_SHIFT - inode->i_blkbits)); in nilfs_page_mkwrite()
|
D | inode.c | 79 unsigned int maxblocks = bh_result->b_size >> inode->i_blkbits; in nilfs_get_block() 87 bh_result->b_size = (ret << inode->i_blkbits); in nilfs_get_block() 229 nr_dirty = 1 << (folio_shift(folio) - inode->i_blkbits); in nilfs_dirty_folio() 1125 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap()
|
/linux-6.12.1/fs/omfs/ |
D | file.c | 229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block() 259 bh_result->b_size = (remain << inode->i_blkbits); in omfs_get_block()
|
/linux-6.12.1/block/ |
D | bdev.c | 150 BD_INODE(bdev)->i_blkbits = blksize_bits(bsize); in set_init_blocksize() 170 if (inode->i_blkbits != blksize_bits(size)) { in set_blocksize() 172 inode->i_blkbits = blksize_bits(size); in set_blocksize() 1318 return 1 << BD_INODE(bdev)->i_blkbits; in block_size()
|
/linux-6.12.1/fs/ocfs2/ |
D | aops.c | 139 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() 188 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block() 2149 unsigned int i_blkbits = inode->i_sb->s_blocksize_bits; in ocfs2_dio_wr_get_block() local 2150 loff_t pos = iblock << i_blkbits; in ocfs2_dio_wr_get_block() 2151 sector_t endblk = (i_size_read(inode) - 1) >> i_blkbits; in ocfs2_dio_wr_get_block() 2170 ((iblock + ((len - 1) >> i_blkbits)) > endblk)) in ocfs2_dio_wr_get_block() 2171 len = (endblk - iblock + 1) << i_blkbits; in ocfs2_dio_wr_get_block()
|