Home
last modified time | relevance | path

Searched refs:block (Results 1 – 11 of 11) sorted by relevance

/fs/ext4/
A Dext4fs.c436 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size) in ext_cache_read() argument
439 if (cache->buf && cache->block == block && cache->size == size) in ext_cache_read()
445 if (!ext4fs_devread(block, 0, size, cache->buf)) { in ext_cache_read()
449 cache->block = block; in ext_cache_read()
A Dext4_journal.c372 debug("\t\ttag %u\n", be32_to_cpu(tag->block)); in recover_transaction()
374 if (check_blknr_for_revoke(be32_to_cpu(tag->block), in recover_transaction()
381 put_ext4((uint64_t)((uint64_t)be32_to_cpu(tag->block) * (uint64_t)fs->blksz), in recover_transaction()
484 debug("\t\ttag %u\n", be32_to_cpu(tag->block)); in ext4fs_check_journal_state()
597 tag.block = cpu_to_be32(journal_ptr[i]->blknr); in update_descriptor_block()
603 tag.block = cpu_to_be32(journal_ptr[--i]->blknr); in update_descriptor_block()
A Dext4_journal.h101 __be32 block; member
A Dext4_common.c1534 unsigned long long block; in ext4fs_get_extent_block() local
1560 block = le16_to_cpu(index[i].ei_leaf_hi); in ext4fs_get_extent_block()
1561 block = (block << 32) + le32_to_cpu(index[i].ei_leaf_lo); in ext4fs_get_extent_block()
1562 block <<= log2_blksz; in ext4fs_get_extent_block()
1563 if (!ext_cache_read(cache, (lbaint_t)block, blksz)) in ext4fs_get_extent_block()
/fs/ubifs/
A Dubifs.c724 static int read_block(struct inode *inode, void *addr, unsigned int block, in read_block() argument
732 data_key_init(c, &key, inode->i_ino, block); in read_block()
766 block, inode->i_ino); in read_block()
776 unsigned int block, beyond; in do_readpage() local
785 block = page->index << UBIFS_BLOCKS_PER_PAGE_SHIFT; in do_readpage()
787 if (block >= beyond) { in do_readpage()
801 if (block >= beyond) { in do_readpage()
810 if (((block + 1) == beyond) || last_block_size) { in do_readpage()
829 ret = read_block(inode, buff, block, dn); in do_readpage()
850 ret = read_block(inode, addr, block, dn); in do_readpage()
[all …]
A Dkey.h261 unsigned int block) in data_key_init() argument
263 ubifs_assert(!(block & ~UBIFS_S_KEY_BLOCK_MASK)); in data_key_init()
265 key->u32[1] = block | (UBIFS_DATA_KEY << UBIFS_S_KEY_BLOCK_BITS); in data_key_init()
A Dtnc.c1528 unsigned int block = key_block(c, &bu->key); in ubifs_tnc_get_bu_keys() local
1595 bu->blk_cnt += (next_block - block - 1); in ubifs_tnc_get_bu_keys()
1598 block = next_block; in ubifs_tnc_get_bu_keys()
1636 block = key_block(c, &bu->key) + bu->blk_cnt; in ubifs_tnc_get_bu_keys()
1637 block &= ~(UBIFS_BLOCKS_PER_PAGE - 1); in ubifs_tnc_get_bu_keys()
1639 if (key_block(c, &bu->zbranch[bu->cnt - 1].key) < block) in ubifs_tnc_get_bu_keys()
3304 unsigned int block; in dbg_check_inode_size() local
3311 block = (size + UBIFS_BLOCK_SIZE - 1) >> UBIFS_BLOCK_SHIFT; in dbg_check_inode_size()
3312 data_key_init(c, &from_key, inode->i_ino, block); in dbg_check_inode_size()
3339 block = key_block(c, key); in dbg_check_inode_size()
[all …]
/fs/fat/
A Dfat.c53 static int disk_read(__u32 block, __u32 nr_blocks, void *buf) in disk_read() argument
564 __u8 *block; in read_bootsectandvi() local
573 block = malloc_cache_aligned(cur_dev->blksz); in read_bootsectandvi()
574 if (block == NULL) { in read_bootsectandvi()
579 if (disk_read(0, 1, block) < 0) { in read_bootsectandvi()
585 memcpy(bs, block, sizeof(boot_sector)); in read_bootsectandvi()
606 vistart = (volume_info *)(block + sizeof(boot_sector)); in read_bootsectandvi()
615 free(block); in read_bootsectandvi()
788 u8 block[MAX_CLUSTSIZE] __aligned(ARCH_DMA_MINALIGN);
910 ret = disk_read(sect, read_size, itr->block); in fat_next_cluster()
[all …]
A Dfat_write.c87 itr->dent = (dir_entry *)itr->block; in fat_move_to_cluster()
195 static int disk_write(__u32 block, __u32 nr_blocks, void *buf) in disk_write() argument
202 if (cur_part_info.start + block + nr_blocks > in disk_write()
208 ret = blk_dwrite(cur_dev, cur_part_info.start + block, nr_blocks, buf); in disk_write()
662 ret = set_cluster(mydata, itr->clust, itr->block, in flush_dir()
673 ret = set_sectors(mydata, startsect, itr->block, in flush_dir()
840 memset(itr->block, 0x00, bytesperclust); in new_dir_table()
855 itr->dent = (dir_entry *)itr->block; in new_dir_table()
/fs/squashfs/
A DKconfig10 may be used), and in constrained block device/memory systems (e.g.
A Dsqfs.c34 static int sqfs_disk_read(__u32 block, __u32 nr_blocks, void *buf) in sqfs_disk_read() argument
41 ret = blk_dread(ctxt.cur_dev, ctxt.cur_part_info.start + block, in sqfs_disk_read()
113 int block, offset, ret; in sqfs_frag_lookup() local
147 block = SQFS_FRAGMENT_INDEX(inode_fragment_index); in sqfs_frag_lookup()
154 start_block = get_unaligned_le64(table + table_offset + block * in sqfs_frag_lookup()

Completed in 29 milliseconds