Lines Matching refs:dno
405 void hpfs_free_dnode(struct super_block *s, dnode_secno dno) in hpfs_free_dnode() argument
407 if (hpfs_sb(s)->sb_chk) if (dno & 3) { in hpfs_free_dnode()
408 hpfs_error(s, "hpfs_free_dnode: dnode %08x not aligned", dno); in hpfs_free_dnode()
411 if (dno < hpfs_sb(s)->sb_dirband_start || in hpfs_free_dnode()
412 dno >= hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dirband_size) { in hpfs_free_dnode()
413 hpfs_free_sectors(s, dno, 4); in hpfs_free_dnode()
417 unsigned ssec = (dno - hpfs_sb(s)->sb_dirband_start) / 4; in hpfs_free_dnode()
424 hpfs_claim_dirband_free(s, dno); in hpfs_free_dnode()
429 dnode_secno *dno, struct quad_buffer_head *qbh) in hpfs_alloc_dnode() argument
433 if (!(*dno = alloc_in_dirband(s, near))) in hpfs_alloc_dnode()
434 if (!(*dno = hpfs_alloc_sector(s, near, 4, 0))) return NULL; in hpfs_alloc_dnode()
436 if (!(*dno = hpfs_alloc_sector(s, near, 4, 0))) in hpfs_alloc_dnode()
437 if (!(*dno = alloc_in_dirband(s, near))) return NULL; in hpfs_alloc_dnode()
439 if (!(d = hpfs_get_4sectors(s, *dno, qbh))) { in hpfs_alloc_dnode()
440 hpfs_free_dnode(s, *dno); in hpfs_alloc_dnode()
450 d->self = cpu_to_le32(*dno); in hpfs_alloc_dnode()