fixed checkpatch.pl formatting errors,  refactored inode creation to separate function