Lines Matching refs:blocknr
124 u32 blocknr, tmp; in affs_alloc_extblock() local
126 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
127 if (!blocknr) in affs_alloc_extblock()
130 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
132 affs_free_block(sb, blocknr); in affs_alloc_extblock()
137 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
147 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
148 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
325 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
326 if (!blocknr) in affs_get_block()
337 AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr); in affs_get_block()
339 affs_adjust_checksum(ext_bh, blocknr - bh_result->b_blocknr + 1); in affs_get_block()
340 bh_result->b_blocknr = blocknr; in affs_get_block()
347 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block()
348 affs_adjust_checksum(ext_bh, blocknr - tmp); in affs_get_block()