Index: uspace/lib/ext4/src/extent.c
===================================================================
--- uspace/lib/ext4/src/extent.c	(revision 0db0df2acaf79a846301b8337ca8d67aee9c1f18)
+++ uspace/lib/ext4/src/extent.c	(revision 6d0e133f565ad653afea4c5cc6db4eed56b99b4f)
@@ -888,6 +888,7 @@
 		ext4_extent_path_t *old_root = path + 1;
 
-		size_t nbytes = sizeof(ext4_extent_path_t) * (path->depth + 1);
-		memmove(old_root, new_root, nbytes);
+		for (int i = path->depth; i >= 0; i--)
+			path[i + 1] = path[i];
+
 		memset(new_root, 0, sizeof(ext4_extent_path_t));
 
