Home
last modified time | relevance | path

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

/fs/
Dmpage.c138 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
139 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage()
140 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
167 block_in_file = (sector_t)folio->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage()
169 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
177 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
208 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
240 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
255 folio_zero_segment(folio, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage()
280 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
[all …]
Ddirect-io.c72 unsigned blkbits; /* doesn't change */ member
629 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks()
689 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio()
719 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page()
823 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section()
844 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section()
894 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block()
924 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local
925 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO()
962 map_bh->b_size >> blkbits; in do_direct_IO()
[all …]
/fs/ext4/
Dreadpage.c227 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local
228 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages()
229 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages()
260 (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages()
263 blocksize - 1) >> blkbits; in ext4_mpage_readpages()
337 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages()
376 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages()
382 length = first_hole << blkbits; in ext4_mpage_readpages()
Dmove_extent.c461 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local
462 unsigned int blocksize = 1 << blkbits; in mext_check_arguments()
464 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
465 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
Dinode.c2280 int blkbits = mpd->inode->i_blkbits; in mpage_process_page() local
2306 io_end_vec->offset = (loff_t)mpd->map.m_lblk << blkbits; in mpage_process_page()
2316 io_end_size += (1 << blkbits); in mpage_process_page()
2592 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local
2668 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map()
3332 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local
3351 iomap->offset = (u64) map->m_lblk << blkbits; in ext4_set_iomap()
3352 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap()
3369 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap()
3374 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap()
[all …]
Dfile.c209 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local
215 map.m_lblk = pos >> blkbits; in ext4_overwrite_io()
216 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io()
Dextents.c4555 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local
4572 start = round_up(offset, 1 << blkbits); in ext4_zero_range()
4573 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range()
4577 partial_begin = offset & ((1 << blkbits) - 1); in ext4_zero_range()
4578 partial_end = (offset + len) & ((1 << blkbits) - 1); in ext4_zero_range()
4580 lblk = start >> blkbits; in ext4_zero_range()
4581 max_blocks = (end >> blkbits); in ext4_zero_range()
4618 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range()
4619 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range()
4620 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range()
[all …]
Dext4.h308 #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))
Dsuper.c3353 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument
3364 upper_limit >>= (blkbits - 9); in ext4_max_size()
3365 upper_limit <<= blkbits; in ext4_max_size()
3374 res <<= blkbits; in ext4_max_size()
/fs/nilfs2/
Dinode.c1173 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
1184 blkoff = start >> blkbits; in nilfs_fiemap()
1185 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap()
1206 logical = blkoff << blkbits; in nilfs_fiemap()
1208 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1239 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap()
1257 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap()
1259 size += n << blkbits; in nilfs_fiemap()
1270 logical = blkoff << blkbits; in nilfs_fiemap()
1271 phys = blkphy << blkbits; in nilfs_fiemap()
[all …]
Dpage.c30 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()
Dmdt.c564 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()
Dthe_nilfs.c385 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
390 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/fs/hpfs/
Dfile.c124 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()
/fs/isofs/
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()
/fs/ext2/
Dinode.c805 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()
/fs/gfs2/
Dbmap.c1237 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local
1242 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1248 *dblock = iomap.addr >> blkbits; in gfs2_get_extent()
1249 len = iomap.length >> blkbits; in gfs2_get_extent()
1258 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local
1263 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1269 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent()
1270 len = iomap.length >> blkbits; in gfs2_alloc_extent()
/fs/iomap/
Ddirect-io.c243 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_iter() local
255 if ((pos | length) & ((1 << blkbits) - 1) || in iomap_dio_bio_iter()
/fs/fuse/
Ddir.c1365 unsigned int blkbits; in fuse_fillattr() local
1385 blkbits = ilog2(attr->blksize); in fuse_fillattr()
1387 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr()
1389 stat->blksize = 1 << blkbits; in fuse_fillattr()
Dbacking.c1908 unsigned int blkbits; in fuse_stat_to_attr() local
1934 blkbits = ilog2(stat->blksize); in fuse_stat_to_attr()
1936 blkbits = inode->i_sb->s_blocksize_bits; in fuse_stat_to_attr()
1938 attr->blksize = 1 << blkbits; in fuse_stat_to_attr()