/linux-6.12.1/fs/ |
D | mpage.c | 155 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 156 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage() 157 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 184 block_in_file = (sector_t)folio->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage() 186 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage() 194 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 224 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 258 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 272 folio_zero_segment(folio, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage() 294 args->bio->bi_iter.bi_sector = first_block << (blkbits - 9); in do_mpage_readpage() [all …]
|
D | direct-io.c | 71 unsigned blkbits; /* doesn't change */ member 612 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks() 672 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio() 702 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page() 806 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section() 827 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section() 877 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block() 907 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local 908 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO() 945 map_bh->b_size >> blkbits; in do_direct_IO() [all …]
|
D | buffer.c | 193 const int blkbits = bd_mapping->host->i_blkbits; in __find_get_block_slow() local 202 index = ((loff_t)block << blkbits) / PAGE_SIZE; in __find_get_block_slow() 236 1 << blkbits); in __find_get_block_slow() 1717 const int blkbits = bd_mapping->host->i_blkbits; in clean_bdev_aliases() local 1719 pgoff_t index = ((loff_t)block << blkbits) / PAGE_SIZE; in clean_bdev_aliases() 1725 end = ((loff_t)(block + len - 1) << blkbits) / PAGE_SIZE; in clean_bdev_aliases()
|
/linux-6.12.1/fs/ext4/ |
D | readpage.c | 217 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local 218 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages() 219 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages() 249 (sector_t)folio->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages() 252 blocksize - 1) >> blkbits; in ext4_mpage_readpages() 325 folio_zero_segment(folio, first_hole << blkbits, in ext4_mpage_readpages() 358 bio->bi_iter.bi_sector = first_block << (blkbits - 9); in ext4_mpage_readpages() 364 length = first_hole << blkbits; in ext4_mpage_readpages()
|
D | move_extent.c | 466 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local 467 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() 469 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() 470 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
|
D | inode.c | 2071 int blkbits = mpd->inode->i_blkbits; in mpage_process_folio() local 2097 io_end_vec->offset = (loff_t)mpd->map.m_lblk << blkbits; in mpage_process_folio() 2107 io_end_size += (1 << blkbits); in mpage_process_folio() 2416 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local 2455 mpd->map.m_len >> (PAGE_SHIFT - blkbits)) in mpage_prepare_extent_to_map() 2533 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map() 3263 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local 3282 iomap->offset = (u64) map->m_lblk << blkbits; in ext4_set_iomap() 3283 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap() 3300 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() [all …]
|
D | file.c | 221 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local 227 map.m_lblk = pos >> blkbits; in ext4_overwrite_io() 228 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io()
|
D | extents.c | 4576 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local 4587 start = round_up(offset, 1 << blkbits); in ext4_zero_range() 4588 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range() 4592 partial_begin = offset & ((1 << blkbits) - 1); in ext4_zero_range() 4593 partial_end = (offset + len) & ((1 << blkbits) - 1); in ext4_zero_range() 4595 lblk = start >> blkbits; in ext4_zero_range() 4596 max_blocks = (end >> blkbits); in ext4_zero_range() 4633 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range() 4634 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range() 4635 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range() [all …]
|
D | ext4.h | 366 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 367 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 368 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 369 blkbits))
|
D | super.c | 3389 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 3400 upper_limit >>= (blkbits - 9); in ext4_max_size() 3401 upper_limit <<= blkbits; in ext4_max_size() 3410 res <<= blkbits; in ext4_max_size()
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | storage_common.c | 188 unsigned int blkbits; in fsg_lun_open() local 234 blkbits = 11; in fsg_lun_open() 237 blkbits = blksize_bits(blksize); in fsg_lun_open() 240 blkbits = 9; in fsg_lun_open() 243 num_sectors = size >> blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open() 264 curlun->blkbits = blkbits; in fsg_lun_open()
|
D | f_mass_storage.c | 643 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 675 file_offset >> curlun->blkbits; in do_read() 715 file_offset >> curlun->blkbits; in do_read() 792 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write() 815 usb_offset >> curlun->blkbits; in do_write() 857 file_offset >> curlun->blkbits; in do_write() 907 file_offset >> curlun->blkbits; in do_write() 987 amount_left = verification_length << curlun->blkbits; in do_verify() 988 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify() 1014 file_offset >> curlun->blkbits; in do_verify() [all …]
|
D | storage_common.h | 116 unsigned int blkbits; /* Bits of logical block size member
|
/linux-6.12.1/fs/hpfs/ |
D | file.c | 124 unsigned int blkbits = inode->i_blkbits; in hpfs_iomap_begin() local 135 s = hpfs_bmap(inode, offset >> blkbits, &n_secs); in hpfs_iomap_begin() 145 iomap->addr = (u64)s << blkbits; in hpfs_iomap_begin() 146 iomap->length = (u64)n_secs << blkbits; in hpfs_iomap_begin() 150 iomap->length = 1 << blkbits; in hpfs_iomap_begin()
|
/linux-6.12.1/fs/nilfs2/ |
D | inode.c | 1125 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local 1136 blkoff = start >> blkbits; in nilfs_fiemap() 1137 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap() 1158 logical = blkoff << blkbits; in nilfs_fiemap() 1160 size = delalloc_blklen << blkbits; in nilfs_fiemap() 1191 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap() 1209 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap() 1211 size += n << blkbits; in nilfs_fiemap() 1222 logical = blkoff << blkbits; in nilfs_fiemap() 1223 phys = blkphy << blkbits; in nilfs_fiemap() [all …]
|
D | page.c | 29 unsigned long block, pgoff_t index, int blkbits, in __nilfs_get_folio_block() argument 37 bh = create_empty_buffers(folio, 1 << blkbits, b_state); in __nilfs_get_folio_block() 39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_folio_block() 51 int blkbits = inode->i_blkbits; in nilfs_grab_buffer() local 52 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer() 60 bh = __nilfs_get_folio_block(folio, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
|
D | mdt.c | 562 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local 571 bh_frozen = create_empty_buffers(folio, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer() 573 bh_frozen = get_nth_bh(bh_frozen, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
|
D | the_nilfs.c | 383 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument 388 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
|
/linux-6.12.1/fs/isofs/ |
D | compress.c | 217 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local 218 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages() 243 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages() 256 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
|
/linux-6.12.1/mm/ |
D | page_io.c | 86 unsigned blkbits; in generic_swapfile_activate() local 94 blkbits = inode->i_blkbits; in generic_swapfile_activate() 95 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate() 103 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 140 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
|
/linux-6.12.1/fs/ext2/ |
D | inode.c | 809 unsigned int blkbits = inode->i_blkbits; in ext2_iomap_begin() local 810 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() 811 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() 824 (first_block << blkbits) < i_size_read(inode)) in ext2_iomap_begin() 841 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin() 856 iomap->length = 1 << blkbits; in ext2_iomap_begin() 859 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin() 862 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
|
/linux-6.12.1/fs/gfs2/ |
D | bmap.c | 1254 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local 1259 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent() 1265 *dblock = iomap.addr >> blkbits; in gfs2_get_extent() 1266 len = iomap.length >> blkbits; in gfs2_get_extent() 1275 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local 1280 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent() 1286 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent() 1287 len = iomap.length >> blkbits; in gfs2_alloc_extent()
|
/linux-6.12.1/fs/iomap/ |
D | buffered-io.c | 1055 u8 blkbits = inode->i_blkbits; in iomap_write_delalloc_ifs_punch() local 1070 first_blk = offset_in_folio(folio, start_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1071 last_blk = offset_in_folio(folio, last_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1074 punch(inode, folio_pos(folio) + (i << blkbits), in iomap_write_delalloc_ifs_punch() 1075 1 << blkbits, iomap); in iomap_write_delalloc_ifs_punch()
|
/linux-6.12.1/fs/fuse/ |
D | dir.c | 1142 unsigned int blkbits; in fuse_fillattr() local 1166 blkbits = ilog2(attr->blksize); in fuse_fillattr() 1168 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr() 1170 stat->blksize = 1 << blkbits; in fuse_fillattr()
|