Lines Matching refs:dir_bh
30 struct buffer_head *dir_bh;
39 dir_bh = affs_bread(sb, dir->i_ino);
40 if (!dir_bh)
43 hash_ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[offset]);
45 affs_brelse(dir_bh);
46 dir_bh = affs_bread(sb, hash_ino);
47 if (!dir_bh)
49 hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain);
55 if (dir->i_ino == dir_bh->b_blocknr)
56 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino);
58 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino);
60 affs_adjust_checksum(dir_bh, ino);
61 mark_buffer_dirty_inode(dir_bh, dir);
62 affs_brelse(dir_bh);