/linux-6.3-rc2/fs/ |
A D | mpage.c | 137 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 139 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 176 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 239 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 279 length = first_hole << blkbits; in do_mpage_readpage() 286 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 525 if (block_in_file >= (i_size + (1 << blkbits) - 1) >> blkbits) in __mpage_writepage() 527 last_block = (i_size - 1) >> blkbits; in __mpage_writepage() 532 map_bh.b_size = 1 << blkbits; in __mpage_writepage() 597 length = first_unmapped << blkbits; in __mpage_writepage() [all …]
|
A D | direct-io.c | 72 unsigned blkbits; /* doesn't change */ member 900 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local 938 map_bh->b_size >> blkbits; in do_direct_IO() 985 1 << blkbits); in do_direct_IO() 987 i_size_aligned >> blkbits) { in do_direct_IO() 994 from += 1 << blkbits; in do_direct_IO() 995 dio->result += 1 << blkbits; in do_direct_IO() 1012 u = (to - from) >> blkbits; in do_direct_IO() 1104 unsigned blkbits = i_blkbits; in __blockdev_direct_IO() local 1151 blocksize_mask = (1 << blkbits) - 1; in __blockdev_direct_IO() [all …]
|
/linux-6.3-rc2/fs/ext4/ |
A D | readpage.c | 226 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local 227 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages() 228 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages() 259 (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages() 262 blocksize - 1) >> blkbits; in ext4_mpage_readpages() 336 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages() 370 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages() 376 length = first_hole << blkbits; in ext4_mpage_readpages()
|
A D | file.c | 210 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local 216 map.m_lblk = pos >> blkbits; in ext4_overwrite_io() 217 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io() 307 u8 blkbits = inode->i_blkbits; in ext4_handle_inode_extension() local 362 written_blk = ALIGN(offset + written, 1 << blkbits); in ext4_handle_inode_extension() 363 end_blk = ALIGN(offset + count, 1 << blkbits); in ext4_handle_inode_extension()
|
A D | move_extent.c | 465 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local 466 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() 468 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() 469 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
|
A D | inode.c | 2278 int blkbits = mpd->inode->i_blkbits; in mpage_process_page() local 2314 io_end_size += (1 << blkbits); in mpage_process_page() 2605 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local 2694 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map() 3397 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local 3417 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap() 3452 u8 blkbits = inode->i_blkbits; in ext4_iomap_alloc() local 3515 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local 3526 map.m_lblk = offset >> blkbits; in ext4_iomap_begin() 3634 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local [all …]
|
A D | extents.c | 4525 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local 4542 start = round_up(offset, 1 << blkbits); in ext4_zero_range() 4550 lblk = start >> blkbits; in ext4_zero_range() 4551 max_blocks = (end >> blkbits); in ext4_zero_range() 4588 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range() 4589 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range() 4590 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range() 4682 unsigned int blkbits = inode->i_blkbits; in ext4_fallocate() local 4726 lblk = offset >> blkbits; in ext4_fallocate() 4788 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local [all …]
|
A D | ext4.h | 308 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 309 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 310 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 311 blkbits))
|
A D | super.c | 3350 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 3361 upper_limit >>= (blkbits - 9); in ext4_max_size() 3362 upper_limit <<= blkbits; in ext4_max_size() 3371 res <<= blkbits; in ext4_max_size()
|
/linux-6.3-rc2/drivers/usb/gadget/function/ |
A 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()
|
A D | f_mass_storage.c | 627 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 659 file_offset >> curlun->blkbits; in do_read() 699 file_offset >> curlun->blkbits; in do_read() 799 usb_offset >> curlun->blkbits; in do_write() 841 file_offset >> curlun->blkbits; in do_write() 891 file_offset >> curlun->blkbits; in do_write() 971 amount_left = verification_length << curlun->blkbits; in do_verify() 972 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify() 998 file_offset >> curlun->blkbits; in do_verify() 1024 file_offset >> curlun->blkbits; in do_verify() [all …]
|
A D | storage_common.h | 116 unsigned int blkbits; /* Bits of logical block size member
|
/linux-6.3-rc2/fs/hpfs/ |
A 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.3-rc2/fs/nilfs2/ |
A D | inode.c | 1144 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local 1155 blkoff = start >> blkbits; in nilfs_fiemap() 1177 logical = blkoff << blkbits; in nilfs_fiemap() 1179 size = delalloc_blklen << blkbits; in nilfs_fiemap() 1230 size += n << blkbits; in nilfs_fiemap() 1241 logical = blkoff << blkbits; in nilfs_fiemap() 1242 phys = blkphy << blkbits; in nilfs_fiemap() 1243 size = n << blkbits; in nilfs_fiemap() 1248 logical = blkoff << blkbits; in nilfs_fiemap() 1249 phys = blkphy << blkbits; in nilfs_fiemap() [all …]
|
A D | page.c | 30 int blkbits, unsigned long b_state) in __nilfs_get_page_block() argument 37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block() 39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block() 52 int blkbits = inode->i_blkbits; in nilfs_grab_buffer() local 53 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer() 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
|
A D | mdt.c | 564 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local 571 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer() 573 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
|
A D | the_nilfs.c | 379 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument 384 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
|
/linux-6.3-rc2/fs/isofs/ |
A 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.3-rc2/mm/ |
A D | page_io.c | 89 unsigned blkbits; in generic_swapfile_activate() local 97 blkbits = inode->i_blkbits; in generic_swapfile_activate() 98 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate() 106 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 143 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
|
/linux-6.3-rc2/fs/ext2/ |
A D | inode.c | 805 unsigned int blkbits = inode->i_blkbits; in ext2_iomap_begin() local 806 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() 807 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() 819 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin() 828 iomap->length = 1 << blkbits; in ext2_iomap_begin() 831 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin() 834 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
|
/linux-6.3-rc2/fs/gfs2/ |
A D | bmap.c | 1251 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local 1256 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent() 1262 *dblock = iomap.addr >> blkbits; in gfs2_get_extent() 1263 len = iomap.length >> blkbits; in gfs2_get_extent() 1272 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local 1277 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent() 1283 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent() 1284 len = iomap.length >> blkbits; in gfs2_alloc_extent()
|
/linux-6.3-rc2/fs/fuse/ |
A D | dir.c | 1131 unsigned int blkbits; in fuse_fillattr() local 1151 blkbits = ilog2(attr->blksize); in fuse_fillattr() 1153 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr() 1155 stat->blksize = 1 << blkbits; in fuse_fillattr()
|