Lines Matching refs:blocknr
122 u32 blocknr, tmp; in affs_alloc_extblock() local
124 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
125 if (!blocknr) in affs_alloc_extblock()
128 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
130 affs_free_block(sb, blocknr); in affs_alloc_extblock()
135 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
145 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
146 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
323 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
324 if (!blocknr) in affs_get_block()
335 AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr); in affs_get_block()
337 affs_adjust_checksum(ext_bh, blocknr - bh_result->b_blocknr + 1); in affs_get_block()
338 bh_result->b_blocknr = blocknr; in affs_get_block()
345 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block()
346 affs_adjust_checksum(ext_bh, blocknr - tmp); in affs_get_block()