Home
last modified time | relevance | path

Searched refs:blkbits (Results 1 – 17 of 17) sorted by relevance

/linux/fs/
H A Dmpage.c155 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
156 const unsigned blocks_per_folio = folio_size(folio) >> blkbits; in do_mpage_readpage()
157 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
181 block_in_file = folio_pos(folio) >> blkbits; in do_mpage_readpage()
182 last_block = block_in_file + ((args->nr_pages * PAGE_SIZE) >> blkbits); in do_mpage_readpage()
183 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
191 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
221 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
255 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
269 folio_zero_segment(folio, first_hole << blkbits, folio_size(folio)); in do_mpage_readpage()
[all …]
H A Dbuffer.c183 const int blkbits = bd_mapping->host->i_blkbits; in __find_get_block_slow() local
192 index = ((loff_t)block << blkbits) / PAGE_SIZE; in __find_get_block_slow()
244 1 << blkbits); in __find_get_block_slow()
1741 const int blkbits = bd_mapping->host->i_blkbits; in clean_bdev_aliases() local
1743 pgoff_t index = ((loff_t)block << blkbits) / PAGE_SIZE; in clean_bdev_aliases()
1749 end = ((loff_t)(block + len - 1) << blkbits) / PAGE_SIZE; in clean_bdev_aliases()
/linux/drivers/usb/gadget/function/
H A Dstorage_common.c188 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 Df_mass_storage.c643 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 …]
/linux/fs/hpfs/
H A Dfile.c126 unsigned int blkbits = inode->i_blkbits; in hpfs_iomap_begin() local
137 s = hpfs_bmap(inode, offset >> blkbits, &n_secs); in hpfs_iomap_begin()
147 iomap->addr = (u64)s << blkbits; in hpfs_iomap_begin()
148 iomap->length = (u64)n_secs << blkbits; in hpfs_iomap_begin()
152 iomap->length = 1 << blkbits; in hpfs_iomap_begin()
/linux/fs/nilfs2/
H A Dinode.c1112 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
1123 blkoff = start >> blkbits; in nilfs_fiemap()
1124 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap()
1145 logical = blkoff << blkbits; in nilfs_fiemap()
1147 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1178 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap()
1196 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap()
1198 size += (u64)n << blkbits; in nilfs_fiemap()
1209 logical = blkoff << blkbits; in nilfs_fiemap()
1210 phys = blkphy << blkbits; in nilfs_fiemap()
[all …]
H A Dpage.c29 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()
H A Dmdt.c573 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local
582 bh_frozen = create_empty_buffers(folio, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer()
585 offset_in_folio(folio, bh->b_data) >> blkbits); in nilfs_mdt_freeze_buffer()
H A Dthe_nilfs.c392 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
397 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/linux/fs/isofs/
H A Dcompress.c217 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/mm/
H A Dpage_io.c86 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/fs/ext2/
H A Dinode.c809 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/fs/gfs2/
H A Dbmap.c1258 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local
1263 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1269 *dblock = iomap.addr >> blkbits; in gfs2_get_extent()
1270 len = iomap.length >> blkbits; in gfs2_get_extent()
1279 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local
1284 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1290 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent()
1291 len = iomap.length >> blkbits; in gfs2_alloc_extent()
/linux/fs/ext4/
H A Dfile.c221 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()
H A Dinode.c3484 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local
3525 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap()
3530 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap()
3788 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local
3791 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin()
3800 map.m_lblk = offset >> blkbits; in ext4_iomap_begin()
3801 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin()
3849 if (map.m_len < (length >> blkbits)) { in ext4_iomap_begin()
3889 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local
3891 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin_report()
[all …]
/linux/fs/iomap/
H A Dbuffered-io.c1204 u8 blkbits = inode->i_blkbits; in iomap_write_delalloc_ifs_punch() local
1218 first_blk = offset_in_folio(folio, start_byte) >> blkbits; in iomap_write_delalloc_ifs_punch()
1219 last_blk = offset_in_folio(folio, last_byte) >> blkbits; in iomap_write_delalloc_ifs_punch()
1222 punch(inode, folio_pos(folio) + (first_blk << blkbits), in iomap_write_delalloc_ifs_punch()
1223 1 << blkbits, iomap); in iomap_write_delalloc_ifs_punch()
/linux/fs/fuse/
H A Ddir.c1363 unsigned int blkbits; in fuse_fillattr() local
1387 blkbits = ilog2(attr->blksize); in fuse_fillattr()
1389 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr()
1391 stat->blksize = 1 << blkbits; in fuse_fillattr()