Index: uspace/lib/ext4/libext4_directory.c
===================================================================
--- uspace/lib/ext4/libext4_directory.c	(revision ed6fdc70c7491c3756daee60384e700e0ef1216a)
+++ uspace/lib/ext4/libext4_directory.c	(revision 7c506ced72b99e3a3887452e102ea7ec428e861e)
@@ -263,6 +263,4 @@
 		const char *entry_name, ext4_inode_ref_t *child)
 {
-	EXT4FS_DBG("adding dentry \%s to child inode \%u to directory \%u", entry_name, child->index, inode_ref->index);
-
 	int rc;
 
@@ -281,6 +279,4 @@
 		uint32_t entry_inode = ext4_directory_entry_ll_get_inode(it.current);
 		uint16_t rec_len = ext4_directory_entry_ll_get_entry_length(it.current);
-
-		EXT4FS_DBG("inode = \%u, rec_len == \%u, required_len = \%u", entry_inode, rec_len, required_len);
 
 		if ((entry_inode == 0) && (rec_len >= required_len)) {
@@ -377,4 +373,7 @@
 	}
 
+	// Fill block with zeroes
+	memset(new_block->data, 0, block_size);
+
 	ext4_directory_entry_ll_t *block_entry = new_block->data;
 
Index: uspace/lib/ext4/libext4_filesystem.c
===================================================================
--- uspace/lib/ext4/libext4_filesystem.c	(revision ed6fdc70c7491c3756daee60384e700e0ef1216a)
+++ uspace/lib/ext4/libext4_filesystem.c	(revision 7c506ced72b99e3a3887452e102ea7ec428e861e)
@@ -284,4 +284,5 @@
 
 	// TODO extents, dir_index etc...
+
 	rc = ext4_filesystem_get_inode_ref(fs, index, inode_ref);
 	if (rc != EOK) {
@@ -325,5 +326,5 @@
 	int rc;
 
-	// release all indirect blocks
+	// release all indirect (no data) blocks
 
 	// 1) Single indirect
@@ -332,5 +333,5 @@
 		rc = ext4_balloc_free_block(fs, inode_ref, fblock);
 		if (rc != EOK) {
-			// TODO error
+			return rc;
 		}
 
@@ -443,4 +444,6 @@
 		ext4_inode_ref_t *inode_ref, aoff64_t new_size)
 {
+	int rc;
+
 	if (! ext4_inode_can_truncate(fs->superblock, inode_ref->inode)) {
 		// Unable to truncate
@@ -454,8 +457,6 @@
 	}
 
+	// It's not suppported to make the larger file
 	if (old_size < new_size) {
-		// Currently not supported to expand the file
-		// TODO
-		EXT4FS_DBG("trying to expand the file");
 		return EINVAL;
 	}
@@ -463,18 +464,20 @@
 	aoff64_t size_diff = old_size - new_size;
 	uint32_t block_size  = ext4_superblock_get_block_size(fs->superblock);
-	uint32_t blocks_count = size_diff / block_size;
+	uint32_t diff_blocks_count = size_diff / block_size;
 	if (size_diff % block_size != 0) {
-		blocks_count++;
-	}
-
-	uint32_t total_blocks = old_size / block_size;
+		diff_blocks_count++;
+	}
+
+	uint32_t old_blocks_count = old_size / block_size;
 	if (old_size % block_size != 0) {
-		total_blocks++;
+		old_blocks_count++;
 	}
 
 	// starting from 1 because of logical blocks are numbered from 0
-	for (uint32_t i = 1; i <= blocks_count; ++i) {
-		// TODO check retval
-		ext4_filesystem_release_inode_block(fs, inode_ref, total_blocks - i);
+	for (uint32_t i = 1; i <= diff_blocks_count; ++i) {
+		rc = ext4_filesystem_release_inode_block(fs, inode_ref, old_blocks_count - i);
+		if (rc != EOK) {
+			return rc;
+		}
 	}
 
