| /linux/fs/ |
| H A D | mpage.c | 154 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 155 const unsigned blocks_per_folio = folio_size(folio) >> blkbits; in do_mpage_readpage() 156 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 180 block_in_file = folio_pos(folio) >> blkbits; in do_mpage_readpage() 181 last_block = block_in_file + ((args->nr_pages * PAGE_SIZE) >> blkbits); in do_mpage_readpage() 182 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage() 190 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 220 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 254 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 268 folio_zero_segment(folio, first_hole << blkbits, folio_size(folio)); in do_mpage_readpage() [all …]
|
| H A D | buffer.c | 220 const int blkbits = bd_mapping->host->i_blkbits; in __find_get_block_slow() local 229 index = ((loff_t)block << blkbits) / PAGE_SIZE; in __find_get_block_slow() 281 1 << blkbits); in __find_get_block_slow() 1626 const int blkbits = bd_mapping->host->i_blkbits; in clean_bdev_aliases() local 1628 pgoff_t index = ((loff_t)block << blkbits) / PAGE_SIZE; in clean_bdev_aliases() 1634 end = ((loff_t)(block + len - 1) << blkbits) / PAGE_SIZE; in clean_bdev_aliases()
|
| /linux/drivers/usb/gadget/function/ |
| H 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()
|
| H A D | f_mass_storage.c | 644 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 676 file_offset >> curlun->blkbits; in do_read() 716 file_offset >> curlun->blkbits; in do_read() 793 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write() 816 usb_offset >> curlun->blkbits; in do_write() 858 file_offset >> curlun->blkbits; in do_write() 908 file_offset >> curlun->blkbits; in do_write() 988 amount_left = verification_length << curlun->blkbits; in do_verify() 989 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify() 1015 file_offset >> curlun->blkbits; in do_verify() [all …]
|
| /linux/fs/isofs/ |
| H A D | compress.c | 219 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local 220 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages() 245 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages() 258 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
|
| /linux/mm/ |
| H A D | page_io.c | 87 unsigned blkbits; in generic_swapfile_activate() local 95 blkbits = inode->i_blkbits; in generic_swapfile_activate() 96 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate() 104 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 141 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
|
| /linux/fs/gfs2/ |
| H A D | bmap.c | 1272 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local 1277 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent() 1283 *dblock = iomap.addr >> blkbits; in gfs2_get_extent() 1284 len = iomap.length >> blkbits; in gfs2_get_extent() 1293 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local 1298 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent() 1304 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent() 1305 len = iomap.length >> blkbits; in gfs2_alloc_extent()
|
| /linux/fs/ext4/ |
| H A D | file.c | 236 unsigned int blkbits = inode->i_blkbits; in ext4_dio_needs_zeroing() local 247 head_lblk = pos >> blkbits; in ext4_dio_needs_zeroing() 248 tail_lblk = (pos + len - 1) >> blkbits; in ext4_dio_needs_zeroing()
|
| H A D | inode.c | 3466 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local 3507 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() 3512 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() 3773 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local 3776 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin() 3785 map.m_lblk = offset >> blkbits; in ext4_iomap_begin() 3786 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin() 3837 if (map.m_len < (length >> blkbits)) { in ext4_iomap_begin() 3859 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local 3861 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin_report() [all …]
|
| H A D | extents.c | 4610 unsigned int blkbits = inode->i_blkbits; in ext4_alloc_file_blocks() local 4615 map.m_lblk = offset >> blkbits; in ext4_alloc_file_blocks() 4616 map.m_len = len_lblk = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_alloc_file_blocks() 4705 inode, (loff_t)map.m_lblk << blkbits, in ext4_alloc_file_blocks() 4706 (loff_t)map.m_len << blkbits, in ext4_alloc_file_blocks() 5060 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents_atomic() local 5064 map.m_lblk = offset >> blkbits; in ext4_convert_unwritten_extents_atomic() 5065 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents_atomic() 5139 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local 5142 map.m_lblk = offset >> blkbits; in ext4_convert_unwritten_extents() [all …]
|
| H A D | ext4.h | 364 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 365 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 366 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 367 blkbits))
|
| H A D | super.c | 3459 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 3470 upper_limit >>= (blkbits - 9); in ext4_max_size() 3471 upper_limit <<= blkbits; in ext4_max_size() 3480 res <<= blkbits; in ext4_max_size()
|
| /linux/fs/iomap/ |
| H A D | buffered-io.c | 1354 u8 blkbits = inode->i_blkbits; in iomap_write_delalloc_ifs_punch() local 1368 first_blk = offset_in_folio(folio, start_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1369 last_blk = offset_in_folio(folio, last_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1372 punch(inode, folio_pos(folio) + (first_blk << blkbits), in iomap_write_delalloc_ifs_punch() 1373 1 << blkbits, iomap); in iomap_write_delalloc_ifs_punch()
|