/Linux-v4.19/fs/ |
D | mpage.c | 160 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 161 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage() 162 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 189 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage() 191 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage() 199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 230 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 277 zero_user_segment(page, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage() 302 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage() [all …]
|
D | direct-io.c | 69 unsigned blkbits; /* doesn't change */ member 681 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks() 740 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio() 770 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page() 872 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section() 893 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section() 943 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block() 972 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local 973 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO() 1010 map_bh->b_size >> blkbits; in do_direct_IO() [all …]
|
D | buffer.c | 2542 const unsigned blkbits = inode->i_blkbits; in nobh_write_begin() local 2543 const unsigned blocksize = 1 << blkbits; in nobh_write_begin() 2590 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
|
D | iomap.c | 1577 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_actor() local 1587 if ((pos | length | align) & ((1 << blkbits) - 1)) in iomap_dio_bio_actor()
|
/Linux-v4.19/fs/ext4/ |
D | readpage.c | 107 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local 108 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages() 109 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages() 141 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages() 143 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in ext4_mpage_readpages() 217 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages() 259 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages() 266 length = first_hole << blkbits; in ext4_mpage_readpages()
|
D | move_extent.c | 452 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local 453 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() 455 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() 456 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
|
D | file.c | 141 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()
|
D | extents.c | 4746 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local 4766 start = round_up(offset, 1 << blkbits); in ext4_zero_range() 4767 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range() 4771 partial_begin = offset & ((1 << blkbits) - 1); in ext4_zero_range() 4772 partial_end = (offset + len) & ((1 << blkbits) - 1); in ext4_zero_range() 4774 lblk = start >> blkbits; in ext4_zero_range() 4775 max_blocks = (end >> blkbits); in ext4_zero_range() 4810 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range() 4811 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range() 4812 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range() [all …]
|
D | inode.c | 2618 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local 2678 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map() 3415 unsigned int blkbits = inode->i_blkbits; in ext4_iomap_begin() local 3421 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin() 3423 first_block = offset >> blkbits; in ext4_iomap_begin() 3424 last_block = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin() 3511 (i_size_read(inode) + (1 << blkbits) - 1) >> blkbits) { in ext4_iomap_begin() 3532 iomap->offset = (u64)first_block << blkbits; in ext4_iomap_begin() 3533 iomap->length = (u64)map.m_len << blkbits; in ext4_iomap_begin() 3547 iomap->addr = (u64)map.m_pblk << blkbits; in ext4_iomap_begin() [all …]
|
D | ext4.h | 280 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 281 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 282 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 283 blkbits))
|
D | super.c | 2652 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 2667 upper_limit >>= (blkbits - 9); in ext4_max_size() 2668 upper_limit <<= blkbits; in ext4_max_size() 2677 res <<= blkbits; in ext4_max_size()
|
/Linux-v4.19/drivers/usb/gadget/function/ |
D | storage_common.c | 187 unsigned int blkbits; in fsg_lun_open() local 233 blkbits = 11; in fsg_lun_open() 236 blkbits = blksize_bits(blksize); in fsg_lun_open() 239 blkbits = 9; in fsg_lun_open() 242 num_sectors = size >> blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open() 263 curlun->blkbits = blkbits; in fsg_lun_open()
|
D | f_mass_storage.c | 646 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 678 file_offset >> curlun->blkbits; in do_read() 718 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 …]
|
D | storage_common.h | 116 unsigned int blkbits; /* Bits of logical block size member
|
/Linux-v4.19/fs/nilfs2/ |
D | inode.c | 1005 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 …]
|
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()
|
D | mdt.c | 548 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()
|
D | the_nilfs.c | 348 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()
|
/Linux-v4.19/mm/ |
D | page_io.c | 155 unsigned blkbits; in generic_swapfile_activate() local 163 blkbits = inode->i_blkbits; in generic_swapfile_activate() 164 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate() 172 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 206 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
|
/Linux-v4.19/fs/isofs/ |
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-v4.19/fs/ext2/ |
D | inode.c | 804 unsigned int blkbits = inode->i_blkbits; in ext2_iomap_begin() local 805 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() 806 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() 819 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin() 825 iomap->length = 1 << blkbits; in ext2_iomap_begin() 828 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin() 829 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
|
/Linux-v4.19/fs/f2fs/ |
D | data.c | 1464 const unsigned blkbits = inode->i_blkbits; in f2fs_mpage_readpages() local 1465 const unsigned blocksize = 1 << blkbits; in f2fs_mpage_readpages() 1495 blkbits; in f2fs_mpage_readpages() 2462 unsigned blkbits = i_blkbits; in check_direct_IO() local 2463 unsigned blocksize_mask = (1 << blkbits) - 1; in check_direct_IO() 2469 blkbits = blksize_bits(bdev_logical_block_size(bdev)); in check_direct_IO() 2470 blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()
|
/Linux-v4.19/fs/fuse/ |
D | dir.c | 853 unsigned int blkbits; in fuse_fillattr() local 882 blkbits = ilog2(attr->blksize); in fuse_fillattr() 884 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr() 886 stat->blksize = 1 << blkbits; in fuse_fillattr()
|