Lines Matching refs:blocknr
123 u32 blocknr, tmp; in affs_alloc_extblock() local
125 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
126 if (!blocknr) in affs_alloc_extblock()
129 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
131 affs_free_block(sb, blocknr); in affs_alloc_extblock()
136 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
146 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
147 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
324 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
325 if (!blocknr) in affs_get_block()
336 AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr); in affs_get_block()
338 affs_adjust_checksum(ext_bh, blocknr - bh_result->b_blocknr + 1); in affs_get_block()
339 bh_result->b_blocknr = blocknr; in affs_get_block()
346 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block()
347 affs_adjust_checksum(ext_bh, blocknr - tmp); in affs_get_block()