Lines Matching refs:block

160 	/* inline the simplest case: same extended block as last time */
181 /* read the next extended block from the current one */
194 /* we seek back to the file header block */
202 /* allocate a new extended block */
205 /* get previous extended block */
275 /* finally read the right extended block */
283 /* release old cached extended block and store the new one */
297 affs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh_result, int create)
304 (unsigned long long)block);
306 BUG_ON(block > (sector_t)0x7fffffffUL);
308 if (block >= AFFS_I(inode)->i_blkcnt) {
309 if (block > AFFS_I(inode)->i_blkcnt || !create)
317 ext = (u32)block / AFFS_SB(sb)->s_hashsize;
318 block -= ext * AFFS_SB(sb)->s_hashsize;
322 map_bh(bh_result, sb, (sector_t)be32_to_cpu(AFFS_BLOCK(sb, ext_bh, block)));
332 /* store new block */
335 "block already set (%llx)",
337 AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr);
338 AFFS_HEAD(ext_bh)->block_count = cpu_to_be32(block + 1);
342 if (!block) {
343 /* insert first block into header block */
346 affs_warning(sb, "get_block", "first block already set (%d)", tmp);
358 affs_error(inode->i_sb, "get_block", "strange block request %llu",
359 (unsigned long long)block);
452 static sector_t _affs_bmap(struct address_space *mapping, sector_t block)
454 return generic_block_bmap(mapping,block,affs_get_block);
470 affs_bread_ino(struct inode *inode, int block, int create)
476 err = affs_get_block(inode, block, &tmp_bh, create);
489 affs_getzeroblk_ino(struct inode *inode, int block)
495 err = affs_get_block(inode, block, &tmp_bh, 1);
508 affs_getemptyblk_ino(struct inode *inode, int block)
514 err = affs_get_block(inode, block, &tmp_bh, 1);
610 "next block already set for %d (%d)",
760 "next block already set for %d (%d)",
794 "next block already set for %d (%d)",
904 "unexpected read error for ext block %u (%ld)",
952 "unexpected read error for last block %u (%ld)",