Lines Matching refs:dnode
256 struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, in hpfs_map_dnode()
259 struct dnode *dnode; in hpfs_map_dnode() local
267 if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) in hpfs_map_dnode()
270 unsigned char *d = (unsigned char *)dnode; in hpfs_map_dnode()
272 if (le32_to_cpu(dnode->magic) != DNODE_MAGIC) { in hpfs_map_dnode()
276 if (le32_to_cpu(dnode->self) != secno) in hpfs_map_dnode()
277 hpfs_error(s, "bad self pointer on dnode %08x self = %08x", secno, le32_to_cpu(dnode->self)); in hpfs_map_dnode()
280 if (le32_to_cpu(dnode->first_free) > 2048) { in hpfs_map_dnode()
281 hpfs_error(s, "dnode %08x has first_free == %08x", secno, le32_to_cpu(dnode->first_free)); in hpfs_map_dnode()
284 for (p = 20; p < le32_to_cpu(dnode->first_free); p += d[p] + (d[p+1] << 8)) { in hpfs_map_dnode()
285 struct hpfs_dirent *de = (struct hpfs_dirent *)((char *)dnode + p); in hpfs_map_dnode()
304 if (p != le32_to_cpu(dnode->first_free)) { in hpfs_map_dnode()
316 return dnode; in hpfs_map_dnode()