Index: uspace/srv/fs/ext4fs/ext4fs_ops.c
===================================================================
--- uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 9a487cc3befe3e53d4eb6a5cf748dc65f73d75ec)
+++ uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 380553c5d065327211ac3b4fc3ada0f8e5d0bb8d)
@@ -76,5 +76,5 @@
 } ext4fs_node_t;
 
-// Forward declarations of auxiliary functions
+/* Forward declarations of auxiliary functions */
 
 static int ext4fs_read_directory(ipc_callid_t, aoff64_t, size_t,
@@ -87,5 +87,5 @@
 static int ext4fs_node_put_core(ext4fs_node_t *);
 
-// Forward declarations of EXT4 libfs operations.
+/* Forward declarations of EXT4 libfs operations. */
 
 static int ext4fs_root_get(fs_node_t **, service_id_t);
@@ -106,5 +106,5 @@
 static service_id_t ext4fs_service_get(fs_node_t *node);
 
-// Static variables
+/* Static variables */
 
 static LIST_INITIALIZE(instance_list);
@@ -250,5 +250,5 @@
 	}
 
-	// Try to find entry
+	/* Try to find entry */
 	ext4_directory_search_result_t result;
 	rc = ext4_directory_find_entry(&result, eparent->inode_ref, component);
@@ -261,5 +261,5 @@
 	}
 
-	// Load node from search result
+	/* Load node from search result */
 	uint32_t inode = ext4_directory_entry_ll_get_inode(result.dentry);
 	rc = ext4fs_node_get_core(rfn, eparent->instance, inode);
@@ -268,5 +268,5 @@
 	}
 
-	// Destroy search result structure
+	/* Destroy search result structure */
 	rc = ext4_directory_destroy_result(&result);
 	if (rc != EOK) {
@@ -330,5 +330,5 @@
 	}
 
-	// Prepare new enode
+	/* Prepare new enode */
 	enode = malloc(sizeof(ext4fs_node_t));
 	if (enode == NULL) {
@@ -337,5 +337,5 @@
 	}
 
-	// Prepare new fs_node and initialize
+	/* Prepare new fs_node and initialize */
 	fs_node_t *fs_node = malloc(sizeof(fs_node_t));
 	if (fs_node == NULL) {
@@ -346,5 +346,5 @@
 	fs_node_initialize(fs_node);
 
-	// Load i-node from filesystem
+	/* Load i-node from filesystem */
 	ext4_inode_ref_t *inode_ref;
 	rc = ext4_filesystem_get_inode_ref(inst->filesystem, index, &inode_ref);
@@ -356,5 +356,5 @@
 	}
 
-	// Initialize enode
+	/* Initialize enode */
 	enode->inode_ref = inode_ref;
 	enode->instance = inst;
@@ -391,5 +391,5 @@
 	enode->instance->open_nodes_count--;
 
-	// Put inode back in filesystem
+	/* Put inode back in filesystem */
 	rc = ext4_filesystem_put_inode_ref(enode->inode_ref);
 	if (rc != EOK) {
@@ -397,5 +397,5 @@
 	}
 
-	// Destroy data structure
+	/* Destroy data structure */
 	free(enode->fs_node);
 	free(enode);
@@ -414,5 +414,5 @@
 int ext4fs_node_open(fs_node_t *fn)
 {
-	// Stateless operation
+	/* Stateless operation */
 	return EOK;
 }
@@ -460,5 +460,5 @@
 	int rc;
 
-	// Allocate enode
+	/* Allocate enode */
 	ext4fs_node_t *enode;
 	enode = malloc(sizeof(ext4fs_node_t));
@@ -467,5 +467,5 @@
 	}
 
-	// Allocate fs_node
+	/* Allocate fs_node */
 	fs_node_t *fs_node;
 	fs_node = malloc(sizeof(fs_node_t));
@@ -475,5 +475,5 @@
 	}
 
-	// Load instance
+	/* Load instance */
 	ext4fs_instance_t *inst;
 	rc = ext4fs_instance_get(service_id, &inst);
@@ -484,5 +484,5 @@
 	}
 
-	// Allocate new i-node in filesystem
+	/* Allocate new i-node in filesystem */
 	ext4_inode_ref_t *inode_ref;
 	rc = ext4_filesystem_alloc_inode(inst->filesystem, &inode_ref, flags);
@@ -493,5 +493,5 @@
 	}
 
-	// Do some interconnections in references
+	/* Do some interconnections in references */
 	enode->inode_ref = inode_ref;
 	enode->instance = inst;
@@ -530,5 +530,5 @@
 	int rc;
 
-	// If directory, check for children
+	/* If directory, check for children */
 	bool has_children;
 	rc = ext4fs_has_children(&has_children, fn);
@@ -546,5 +546,5 @@
 	ext4_inode_ref_t *inode_ref = enode->inode_ref;
 
-	// Release data blocks
+	/* Release data blocks */
 	rc = ext4_filesystem_truncate_inode(inode_ref, 0);
 	if (rc != EOK) {
@@ -553,5 +553,6 @@
 	}
 
-	// Handle orphans
+	/* Handle orphans */
+	// TODO this code should be deleted
 //	ext4_filesystem_t *fs = enode->instance->filesystem;
 //	uint32_t rev_level = ext4_superblock_get_rev_level(fs->superblock);
@@ -564,11 +565,10 @@
 //	}
 
-	// TODO set real deletion time when it will be supported,
-	// temporary set fake time
+	// TODO set real deletion time when it will be supported, temporary set fake time
 //	time_t now = time(NULL);
 	ext4_inode_set_deletion_time(inode_ref->inode, 0xdeadbeef);
 	inode_ref->dirty = true;
 
-	// Free inode
+	/* Free inode */
 	rc = ext4_filesystem_free_inode(inode_ref);
 	if (rc != EOK) {
@@ -592,5 +592,5 @@
 	int rc;
 
-	// Check maximum name length
+	/* Check maximum name length */
 	if (strlen(name) > EXT4_DIRECTORY_FILENAME_LEN) {
 		return ENAMETOOLONG;
@@ -600,5 +600,5 @@
 	ext4_filesystem_t *fs = parent->instance->filesystem;
 
-	// Add entry to parent directory
+	/* Add entry to parent directory */
 	rc = ext4_directory_add_entry(parent->inode_ref, name, child->inode_ref);
 	if (rc != EOK) {
@@ -606,5 +606,5 @@
 	}
 
-	// Fill new dir -> add '.' and '..' entries
+	/* Fill new dir -> add '.' and '..' entries */
 	if (ext4_inode_is_type(fs->superblock, child->inode_ref->inode, EXT4_INODE_MODE_DIRECTORY)) {
 
@@ -622,5 +622,5 @@
 		}
 
-		// Initialize directory index if supported
+		/* Initialize directory index if supported */
 		if (ext4_superblock_has_feature_compatible(
 				fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX)) {
@@ -670,10 +670,10 @@
 	}
 
-	// Cannot unlink non-empty node
+	/* Cannot unlink non-empty node */
 	if (has_children) {
 		return ENOTEMPTY;
 	}
 
-	// Remove entry from parent directory
+	/* Remove entry from parent directory */
 	ext4_inode_ref_t *parent = EXT4FS_NODE(pfn)->inode_ref;
 	rc = ext4_directory_remove_entry(parent, name);
@@ -682,5 +682,5 @@
 	}
 
-	// Decrement links count
+	/* Decrement links count */
 	ext4_inode_ref_t * child_inode_ref = EXT4FS_NODE(cfn)->inode_ref;
 
@@ -688,5 +688,5 @@
 	lnk_count--;
 
-	// If directory - handle links from parent
+	/* If directory - handle links from parent */
 	if (lnk_count <= 1 && ext4fs_is_directory(cfn)) {
 
@@ -744,5 +744,5 @@
 	ext4_filesystem_t *fs = enode->instance->filesystem;
 
-	// Check if node is directory
+	/* Check if node is directory */
 	if (!ext4_inode_is_type(fs->superblock, enode->inode_ref->inode,
 	    EXT4_INODE_MODE_DIRECTORY)) {
@@ -830,5 +830,5 @@
 	}
 
-	// For regular files return real links count
+	/* For regular files return real links count */
 	return lnkcnt;
 }
@@ -1055,5 +1055,5 @@
 	}
 
-	// Load i-node
+	/* Load i-node */
 	ext4_inode_ref_t *inode_ref;
 	rc = ext4_filesystem_get_inode_ref(inst->filesystem, index, &inode_ref);
@@ -1063,5 +1063,5 @@
 	}
 
-	// Read from i-node by type
+	/* Read from i-node by type */
 	if (ext4_inode_is_type(inst->filesystem->superblock, inode_ref->inode,
 			EXT4_INODE_MODE_FILE)) {
@@ -1183,5 +1183,5 @@
 	}
 
-	// Prepare return values
+	/* Prepare return values */
 	if (found) {
 		*rbytes = next - pos;
@@ -1317,5 +1317,5 @@
 	uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
 
-	// Prevent writing to more than one block
+	/* Prevent writing to more than one block */
 	uint32_t bytes = min(len, block_size - (pos % block_size));
 
@@ -1328,5 +1328,5 @@
 	uint32_t fblock;
 
-	// Load inode
+	/* Load inode */
 	ext4_inode_ref_t *inode_ref = enode->inode_ref;
 	rc = ext4_filesystem_get_inode_data_block_index(inode_ref, iblock, &fblock);
@@ -1337,5 +1337,5 @@
 	}
 
-	// Check for sparse file
+	/* Check for sparse file */
 	if (fblock == 0) {
 
@@ -1375,5 +1375,5 @@
 	}
 
-	// Load target block
+	/* Load target block */
 	block_t *write_block;
 	rc = block_get(&write_block, service_id, fblock, flags);
@@ -1402,5 +1402,5 @@
 	}
 
-	// Do some counting
+	/* Do some counting */
 	uint32_t old_inode_size = ext4_inode_get_size(fs->superblock, inode_ref->inode);
 	if (pos + bytes > old_inode_size) {
