diAlloc
extern int diAlloc(struct inode *, bool, struct inode *);
rc = diAlloc(parent, S_ISDIR(mode), inode);