changed mode to S_IFDIR|mode in mkdir
replaced new_inode with iget_locked in inode_get_new_inode
removed new_inode function call