Home
last modified time | relevance | path

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

/linux-3.3/fs/
Dmpage.c160 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
161 const unsigned blocks_per_page = PAGE_CACHE_SIZE >> blkbits; in do_mpage_readpage()
162 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
178 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in do_mpage_readpage()
180 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
188 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
218 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
250 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
265 zero_user_segment(page, first_hole << blkbits, PAGE_CACHE_SIZE); in do_mpage_readpage()
289 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
[all …]
Ddirect-io.c63 unsigned blkbits; /* doesn't change */ member
617 sdio->blkbits)) in get_more_blocks()
642 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio()
673 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page()
781 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section()
812 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section()
869 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block()
898 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local
899 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_direct_IO()
915 unsigned offset_in_page = block_in_page << blkbits; in do_direct_IO()
[all …]
Dbuffer.c2405 const unsigned blkbits = inode->i_blkbits; in nobh_write_begin() local
2406 const unsigned blocksize = 1 << blkbits; in nobh_write_begin()
2453 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in nobh_write_begin()
/linux-3.3/fs/nilfs2/
Dinode.c947 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
958 blkoff = start >> blkbits; in nilfs_fiemap()
959 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap()
980 logical = blkoff << blkbits; in nilfs_fiemap()
982 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1013 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap()
1031 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap()
1033 size += n << blkbits; in nilfs_fiemap()
1044 logical = blkoff << blkbits; in nilfs_fiemap()
1045 phys = blkphy << blkbits; in nilfs_fiemap()
[all …]
Dpage.c44 int blkbits, unsigned long b_state) in __nilfs_get_page_block() argument
51 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
53 first_block = (unsigned long)index << (PAGE_CACHE_SHIFT - blkbits); in __nilfs_get_page_block()
66 int blkbits = inode->i_blkbits; in nilfs_grab_buffer() local
67 pgoff_t index = blkoff >> (PAGE_CACHE_SHIFT - blkbits); in nilfs_grab_buffer()
75 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
Dmdt.c490 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local
497 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer()
499 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
Dthe_nilfs.c355 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
360 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/linux-3.3/fs/isofs/
Dcompress.c210 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local
211 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages()
236 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
249 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
/linux-3.3/drivers/usb/gadget/
Dstorage_common.c247 unsigned int blkbits; /* Bits of logical block size of bound block device */ member
724 curlun->blkbits = 11; in fsg_lun_open()
727 curlun->blkbits = blksize_bits(curlun->blksize); in fsg_lun_open()
730 curlun->blkbits = 9; in fsg_lun_open()
733 num_sectors = size >> curlun->blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open()
Df_mass_storage.c774 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read()
808 file_offset >> curlun->blkbits; in do_read()
849 file_offset >> curlun->blkbits; in do_read()
923 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write()
946 usb_offset >> curlun->blkbits; in do_write()
984 file_offset >> curlun->blkbits; in do_write()
1035 file_offset >> curlun->blkbits; in do_write()
1122 amount_left = verification_length << curlun->blkbits; in do_verify()
1123 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify()
1149 file_offset >> curlun->blkbits; in do_verify()
[all …]
Dfile_storage.c1183 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read()
1214 curlun->sense_data_info = file_offset >> curlun->blkbits; in do_read()
1255 curlun->sense_data_info = file_offset >> curlun->blkbits; in do_read()
1325 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write()
1345 curlun->sense_data_info = usb_offset >> curlun->blkbits; in do_write()
1380 curlun->sense_data_info = file_offset >> curlun->blkbits; in do_write()
1431 curlun->sense_data_info = file_offset >> curlun->blkbits; in do_write()
1514 amount_left = verification_length << curlun->blkbits; in do_verify()
1515 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify()
1540 curlun->sense_data_info = file_offset >> curlun->blkbits; in do_verify()
[all …]
/linux-3.3/fs/ext4/
Dmove_extent.c951 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local
952 unsigned int blocksize = 1 << blkbits; in mext_check_arguments()
1015 donor_blocks = (donor_inode->i_size + blocksize - 1) >> blkbits; in mext_check_arguments()
1038 orig_blocks = (orig_inode->i_size + blocksize - 1) >> blkbits; in mext_check_arguments()
Dextents.c4305 unsigned int credits, blkbits = inode->i_blkbits; in ext4_fallocate() local
4322 map.m_lblk = offset >> blkbits; in ext4_fallocate()
4327 max_blocks = (EXT4_BLOCK_ALIGN(len + offset, blkbits) >> blkbits) in ext4_fallocate()
4348 if (len <= EXT_UNINIT_MAX_LEN << blkbits) in ext4_fallocate()
4373 blkbits) >> blkbits)) in ext4_fallocate()
4376 new_size = ((loff_t) map.m_lblk + ret) << blkbits; in ext4_fallocate()
4414 unsigned int credits, blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local
4416 map.m_lblk = offset >> blkbits; in ext4_convert_unwritten_extents()
4421 max_blocks = ((EXT4_BLOCK_ALIGN(len + offset, blkbits) >> blkbits) - in ext4_convert_unwritten_extents()
Dext4.h270 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument
Dsuper.c2296 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument
2311 upper_limit >>= (blkbits - 9); in ext4_max_size()
2312 upper_limit <<= blkbits; in ext4_max_size()
2321 res <<= blkbits; in ext4_max_size()
/linux-3.3/mm/
Dswapfile.c1430 unsigned blkbits; in setup_swap_extents() local
1445 blkbits = inode->i_blkbits; in setup_swap_extents()
1446 blocks_per_page = PAGE_SIZE >> blkbits; in setup_swap_extents()
1454 last_block = i_size_read(inode) >> blkbits; in setup_swap_extents()
1486 first_block >>= (PAGE_SHIFT - blkbits); in setup_swap_extents()
/linux-3.3/fs/cifs/
DCHANGES717 Fix oops on big endian readdir. Set blksize to be even power of two (2**blkbits) to fix