Home
last modified time | relevance | path

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

/linux/fs/
A Dmpage.c160 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
162 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
312 length = first_hole << blkbits; in do_mpage_readpage()
319 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
485 const unsigned blkbits = inode->i_blkbits; in __mpage_writepage() local
558 last_block = (i_size - 1) >> blkbits; in __mpage_writepage()
563 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
633 length = first_unmapped << blkbits; in __mpage_writepage()
[all …]
A Ddirect-io.c72 unsigned blkbits; /* doesn't change */ member
926 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local
964 map_bh->b_size >> blkbits; in do_direct_IO()
1011 1 << blkbits); in do_direct_IO()
1013 i_size_aligned >> blkbits) { in do_direct_IO()
1020 from += 1 << blkbits; in do_direct_IO()
1021 dio->result += 1 << blkbits; in do_direct_IO()
1038 u = (to - from) >> blkbits; in do_direct_IO()
1131 unsigned blkbits = i_blkbits; in do_blockdev_direct_IO() local
1178 blocksize_mask = (1 << blkbits) - 1; in do_blockdev_direct_IO()
[all …]
A Dbuffer.c2583 const unsigned blkbits = inode->i_blkbits; in nobh_write_begin() local
2584 const unsigned blocksize = 1 << blkbits; in nobh_write_begin()
2631 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
/linux/fs/ext4/
A Dreadpage.c230 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local
231 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages()
232 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages()
263 (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages()
266 blocksize - 1) >> blkbits; in ext4_mpage_readpages()
340 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages()
379 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages()
385 length = first_hole << blkbits; in ext4_mpage_readpages()
A Dfile.c192 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local
198 map.m_lblk = pos >> blkbits; in ext4_overwrite_io()
199 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io()
288 u8 blkbits = inode->i_blkbits; in ext4_handle_inode_extension() local
343 written_blk = ALIGN(offset + written, 1 << blkbits); in ext4_handle_inode_extension()
344 end_blk = ALIGN(offset + count, 1 << blkbits); in ext4_handle_inode_extension()
A 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()
A Dinode.c2244 int blkbits = mpd->inode->i_blkbits; in mpage_process_page() local
2281 io_end_size += (1 << blkbits); in mpage_process_page()
2559 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local
2619 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map()
3276 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local
3294 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap()
3325 u8 blkbits = inode->i_blkbits; in ext4_iomap_alloc() local
3388 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local
3399 map.m_lblk = offset >> blkbits; in ext4_iomap_begin()
3500 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local
[all …]
A Dextents.c4527 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local
4544 start = round_up(offset, 1 << blkbits); in ext4_zero_range()
4552 lblk = start >> blkbits; in ext4_zero_range()
4553 max_blocks = (end >> blkbits); in ext4_zero_range()
4586 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range()
4587 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range()
4588 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range()
4682 unsigned int blkbits = inode->i_blkbits; in ext4_fallocate() local
4726 lblk = offset >> blkbits; in ext4_fallocate()
4785 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local
[all …]
A Dext4.h310 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument
311 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument
312 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \
313 blkbits))
A Dsuper.c3000 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument
3011 upper_limit >>= (blkbits - 9); in ext4_max_size()
3012 upper_limit <<= blkbits; in ext4_max_size()
3021 res <<= blkbits; in ext4_max_size()
/linux/drivers/usb/gadget/function/
A Dstorage_common.c187 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()
A Df_mass_storage.c625 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read()
657 file_offset >> curlun->blkbits; in do_read()
697 file_offset >> curlun->blkbits; in do_read()
797 usb_offset >> curlun->blkbits; in do_write()
839 file_offset >> curlun->blkbits; in do_write()
889 file_offset >> curlun->blkbits; in do_write()
969 amount_left = verification_length << curlun->blkbits; in do_verify()
970 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify()
996 file_offset >> curlun->blkbits; in do_verify()
1022 file_offset >> curlun->blkbits; in do_verify()
[all …]
A Dstorage_common.h116 unsigned int blkbits; /* Bits of logical block size member
/linux/fs/nilfs2/
A Dinode.c999 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
1010 blkoff = start >> blkbits; in nilfs_fiemap()
1032 logical = blkoff << blkbits; in nilfs_fiemap()
1034 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1085 size += n << blkbits; in nilfs_fiemap()
1096 logical = blkoff << blkbits; in nilfs_fiemap()
1097 phys = blkphy << blkbits; in nilfs_fiemap()
1098 size = n << blkbits; in nilfs_fiemap()
1103 logical = blkoff << blkbits; in nilfs_fiemap()
1104 phys = blkphy << blkbits; in nilfs_fiemap()
[all …]
A 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()
A Dmdt.c549 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local
556 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer()
558 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
A Dthe_nilfs.c346 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
351 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/linux/fs/hpfs/
A 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()
/linux/mm/
A Dpage_io.c135 unsigned blkbits; in generic_swapfile_activate() local
143 blkbits = inode->i_blkbits; in generic_swapfile_activate()
144 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate()
152 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate()
189 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
/linux/fs/isofs/
A 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()
/linux/fs/ext2/
A 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()
820 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
826 iomap->length = 1 << blkbits; in ext2_iomap_begin()
829 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin()
830 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
/linux/fs/gfs2/
A Dbmap.c1243 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local
1248 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1254 *dblock = iomap.addr >> blkbits; in gfs2_get_extent()
1255 len = iomap.length >> blkbits; in gfs2_get_extent()
1264 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local
1269 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1275 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent()
1276 len = iomap.length >> blkbits; in gfs2_alloc_extent()
/linux/fs/iomap/
A Ddirect-io.c230 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_iter() local
243 if ((pos | length | align) & ((1 << blkbits) - 1)) in iomap_dio_bio_iter()
/linux/fs/fuse/
A Ddir.c944 unsigned int blkbits; in fuse_fillattr() local
964 blkbits = ilog2(attr->blksize); in fuse_fillattr()
966 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr()
968 stat->blksize = 1 << blkbits; in fuse_fillattr()
/linux/fs/f2fs/
A Ddata.c3602 unsigned blkbits = i_blkbits; in check_direct_IO() local
3603 unsigned blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()
3612 blkbits = blksize_bits(bdev_logical_block_size(bdev)); in check_direct_IO()
3613 blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()

Completed in 93 milliseconds