Home
last modified time | relevance | path

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

/fs/
Dmpage.c196 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
197 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage()
198 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
225 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage()
227 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
235 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
266 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
298 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
313 zero_user_segment(page, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage()
338 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
[all …]
Ddirect-io.c71 unsigned blkbits; /* doesn't change */ member
678 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks()
738 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio()
768 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page()
870 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section()
891 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section()
941 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block()
970 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local
971 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO()
1008 map_bh->b_size >> blkbits; in do_direct_IO()
[all …]
Dbuffer.c2541 const unsigned blkbits = inode->i_blkbits; in nobh_write_begin() local
2542 const unsigned blocksize = 1 << blkbits; in nobh_write_begin()
2589 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
/fs/ext4/
Dreadpage.c259 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local
260 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages()
261 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages()
296 (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages()
299 blocksize - 1) >> blkbits; in ext4_mpage_readpages()
373 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages()
418 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages()
425 length = first_hole << blkbits; in ext4_mpage_readpages()
Dmove_extent.c453 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local
454 unsigned int blocksize = 1 << blkbits; in mext_check_arguments()
456 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
457 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
Dfile.c141 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local
147 map.m_lblk = pos >> blkbits; in ext4_overwrite_io()
148 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io()
Dextents.c4701 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local
4721 start = round_up(offset, 1 << blkbits); in ext4_zero_range()
4722 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range()
4726 partial_begin = offset & ((1 << blkbits) - 1); in ext4_zero_range()
4727 partial_end = (offset + len) & ((1 << blkbits) - 1); in ext4_zero_range()
4729 lblk = start >> blkbits; in ext4_zero_range()
4730 max_blocks = (end >> blkbits); in ext4_zero_range()
4765 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range()
4766 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range()
4767 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range()
[all …]
Dinode.c2654 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local
2714 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map()
3446 unsigned int blkbits = inode->i_blkbits; in ext4_iomap_begin() local
3452 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin()
3454 first_block = offset >> blkbits; in ext4_iomap_begin()
3455 last_block = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin()
3543 (i_size_read(inode) + (1 << blkbits) - 1) >> blkbits) { in ext4_iomap_begin()
3570 iomap->offset = (u64)first_block << blkbits; in ext4_iomap_begin()
3571 iomap->length = (u64)map.m_len << blkbits; in ext4_iomap_begin()
3585 iomap->addr = (u64)map.m_pblk << blkbits; in ext4_iomap_begin()
[all …]
Dext4.h279 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument
280 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument
281 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \
282 blkbits))
Dsuper.c2783 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument
2794 upper_limit >>= (blkbits - 9); in ext4_max_size()
2795 upper_limit <<= blkbits; in ext4_max_size()
2804 res <<= blkbits; in ext4_max_size()
/fs/nilfs2/
Dinode.c1005 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
1016 blkoff = start >> blkbits; in nilfs_fiemap()
1017 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap()
1038 logical = blkoff << blkbits; in nilfs_fiemap()
1040 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1071 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap()
1089 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap()
1091 size += n << blkbits; in nilfs_fiemap()
1102 logical = blkoff << blkbits; in nilfs_fiemap()
1103 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.c548 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local
555 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer()
557 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
Dthe_nilfs.c348 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
353 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/fs/isofs/
Dcompress.c212 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local
213 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages()
238 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
251 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
/fs/ext2/
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 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
830 iomap->length = 1 << blkbits; in ext2_iomap_begin()
833 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin()
834 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
/fs/f2fs/
Ddata.c1814 const unsigned blkbits = inode->i_blkbits; in f2fs_read_single_page() local
1815 const unsigned blocksize = 1 << blkbits; in f2fs_read_single_page()
1825 blkbits; in f2fs_read_single_page()
2930 unsigned blkbits = i_blkbits; in check_direct_IO() local
2931 unsigned blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()
2937 blkbits = blksize_bits(bdev_logical_block_size(bdev)); in check_direct_IO()
2938 blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()
3248 unsigned blkbits; in check_swap_activate() local
3254 blkbits = inode->i_blkbits; in check_swap_activate()
3255 blocks_per_page = PAGE_SIZE >> blkbits; in check_swap_activate()
[all …]
/fs/iomap/
Ddirect-io.c205 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_actor() local
215 if ((pos | length | align) & ((1 << blkbits) - 1)) in iomap_dio_bio_actor()
/fs/fuse/
Ddir.c887 unsigned int blkbits; in fuse_fillattr() local
916 blkbits = ilog2(attr->blksize); in fuse_fillattr()
918 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr()
920 stat->blksize = 1 << blkbits; in fuse_fillattr()