Lines Matching refs:dir_bh
26 struct buffer_head *dir_bh; in affs_insert_hash() local
35 dir_bh = affs_bread(sb, dir->i_ino); in affs_insert_hash()
36 if (!dir_bh) in affs_insert_hash()
39 hash_ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[offset]); in affs_insert_hash()
41 affs_brelse(dir_bh); in affs_insert_hash()
42 dir_bh = affs_bread(sb, hash_ino); in affs_insert_hash()
43 if (!dir_bh) in affs_insert_hash()
45 hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain); in affs_insert_hash()
51 if (dir->i_ino == dir_bh->b_blocknr) in affs_insert_hash()
52 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); in affs_insert_hash()
54 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); in affs_insert_hash()
56 affs_adjust_checksum(dir_bh, ino); in affs_insert_hash()
57 mark_buffer_dirty_inode(dir_bh, dir); in affs_insert_hash()
58 affs_brelse(dir_bh); in affs_insert_hash()