Searched refs:blkbits (Results 1 – 11 of 11) sorted by relevance
| /linux/fs/ |
| H A D | mpage.c | 154 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 155 const unsigned blocks_per_folio = folio_size(folio) >> blkbits; in do_mpage_readpage() 156 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 180 block_in_file = folio_pos(folio) >> blkbits; in do_mpage_readpage() 181 last_block = block_in_file + ((args->nr_pages * PAGE_SIZE) >> blkbits); in do_mpage_readpage() 182 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage() 190 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 220 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 254 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 268 folio_zero_segment(folio, first_hole << blkbits, folio_size(folio)); in do_mpage_readpage() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | storage_common.c | 188 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 D | f_mass_storage.c | 644 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 676 file_offset >> curlun->blkbits; in do_read() 716 file_offset >> curlun->blkbits; in do_read() 793 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write() 816 usb_offset >> curlun->blkbits; in do_write() 858 file_offset >> curlun->blkbits; in do_write() 908 file_offset >> curlun->blkbits; in do_write() 988 amount_left = verification_length << curlun->blkbits; in do_verify() 989 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify() 1015 file_offset >> curlun->blkbits; in do_verify() [all …]
|
| /linux/fs/hpfs/ |
| H A D | file.c | 126 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/ext4/ |
| H A D | extents-test.c | 390 int blkbits = inode->i_sb->s_blocksize_bits; in test_split_convert() local 408 EXT_DATA_LEN << blkbits)); in test_split_convert() 498 off = exp_data_seg.off_blk << blkbits; in test_split_convert() 499 len = exp_data_seg.len_blk << blkbits; in test_split_convert()
|
| H A D | inode.c | 3474 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local 3515 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() 3520 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() 3778 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local 3781 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin() 3790 map.m_lblk = offset >> blkbits; in ext4_iomap_begin() 3791 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin() 3842 if (map.m_len < (length >> blkbits)) { in ext4_iomap_begin() 3862 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local 3864 if ((offset >> blkbits) > EXT4_MAX_LOGICAL_BLOCK) in ext4_iomap_begin_report() [all …]
|
| H A D | extents.c | 4586 unsigned int blkbits = inode->i_blkbits; in ext4_alloc_file_blocks() local 4590 map.m_lblk = offset >> blkbits; in ext4_alloc_file_blocks() 4591 map.m_len = len_lblk = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_alloc_file_blocks() 4666 inode, (loff_t)map.m_lblk << blkbits, in ext4_alloc_file_blocks() 4667 (loff_t)map.m_len << blkbits); in ext4_alloc_file_blocks() 4965 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents_atomic() local 4969 map.m_lblk = offset >> blkbits; in ext4_convert_unwritten_extents_atomic() 4970 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents_atomic() 5039 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local 5042 map.m_lblk = offset >> blkbits; in ext4_convert_unwritten_extents() [all …]
|
| H A D | ext4.h | 364 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 365 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 366 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 367 blkbits))
|
| H A D | super.c | 3440 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 3451 upper_limit >>= (blkbits - 9); in ext4_max_size() 3452 upper_limit <<= blkbits; in ext4_max_size() 3461 res <<= blkbits; in ext4_max_size()
|
| /linux/fs/iomap/ |
| H A D | buffered-io.c | 1241 u8 blkbits = inode->i_blkbits; in iomap_write_delalloc_ifs_punch() local 1255 first_blk = offset_in_folio(folio, start_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1256 last_blk = offset_in_folio(folio, last_byte) >> blkbits; in iomap_write_delalloc_ifs_punch() 1259 punch(inode, folio_pos(folio) + (first_blk << blkbits), in iomap_write_delalloc_ifs_punch() 1260 1 << blkbits, iomap); in iomap_write_delalloc_ifs_punch()
|
| /linux/fs/nilfs2/ |
| H A D | the_nilfs.c | 392 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()
|