Index: uspace/srv/fs/mfs/mfs_ops.c
===================================================================
--- uspace/srv/fs/mfs/mfs_ops.c	(revision 64e63ce189ef9ee6cfebc24570651155fd68b352)
+++ uspace/srv/fs/mfs/mfs_ops.c	(revision 1ba6651038612ccd1b589f754d69bc6586cc2115)
@@ -345,6 +345,4 @@
 	uint32_t inum;
 
-	mfsdebug("%s()\n", __FUNCTION__);
-
 	r = mfs_instance_get(service_id, &inst);
 	if (r != EOK)
@@ -379,6 +377,8 @@
 		ino_i->i_mode = S_IFDIR;
 		ino_i->i_nlinks = 1; /* This accounts for the '.' dentry */
-	} else
+	} else {
 		ino_i->i_mode = S_IFREG;
+		ino_i->i_nlinks = 0;
+	}
 
 	ino_i->i_uid = 0;
@@ -431,6 +431,4 @@
 	int r;
 
-	mfsdebug("%s()\n", __FUNCTION__);
-
 	if (!S_ISDIR(ino_i->i_mode))
 		return ENOTDIR;
@@ -479,6 +477,4 @@
 	struct mfs_instance *instance;
 
-	mfsdebug("%s()\n", __FUNCTION__);
-
 	rc = mfs_instance_get(service_id, &instance);
 	if (rc != EOK)
@@ -493,6 +489,4 @@
 	int rc = EOK;
 	struct mfs_node *mnode = fsnode->data;
-
-	mfsdebug("%s()\n", __FUNCTION__);
 
 	fibril_mutex_lock(&open_nodes_lock);
@@ -555,6 +549,4 @@
 	int rc;
 
-	mfsdebug("%s()\n", __FUNCTION__);
-
 	fibril_mutex_lock(&open_nodes_lock);
 
@@ -650,6 +642,4 @@
 	struct mfs_sb_info *sbi = parent->instance->sbi;
 	bool destroy_dentry = false;
-
-	mfsdebug("%s()\n", __FUNCTION__);
 
 	if (str_size(name) > sbi->max_name_len)
@@ -703,6 +693,4 @@
 	bool has_children;
 	int r;
-
-	mfsdebug("%s()\n", __FUNCTION__);
 
 	if (!parent)
@@ -970,5 +958,5 @@
 mfs_destroy(service_id_t service_id, fs_index_t index)
 {
-	fs_node_t *fn;
+	fs_node_t *fn = NULL;
 	int r;
 
