Lines Matching refs:dir_bh
29 struct buffer_head *dir_bh;
38 dir_bh = affs_bread(sb, dir->i_ino);
39 if (!dir_bh)
42 hash_ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[offset]);
44 affs_brelse(dir_bh);
45 dir_bh = affs_bread(sb, hash_ino);
46 if (!dir_bh)
48 hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain);
54 if (dir->i_ino == dir_bh->b_blocknr)
55 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino);
57 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino);
59 affs_adjust_checksum(dir_bh, ino);
60 mark_buffer_dirty_inode(dir_bh, dir);
61 affs_brelse(dir_bh);