Lines Matching refs:blocknr
160 u32 blocknr, tmp; in affs_alloc_extblock() local
162 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
163 if (!blocknr) in affs_alloc_extblock()
166 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
168 affs_free_block(sb, blocknr); in affs_alloc_extblock()
173 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
183 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
184 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
365 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
366 if (!blocknr) in affs_get_block()
375 AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr); in affs_get_block()
377 affs_adjust_checksum(ext_bh, blocknr - bh_result->b_blocknr + 1); in affs_get_block()
378 bh_result->b_blocknr = blocknr; in affs_get_block()
385 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block()
386 affs_adjust_checksum(ext_bh, blocknr - tmp); in affs_get_block()