Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 7fe1f75f70531c93a931eb2ac453b58c55151e62)
+++ uspace/srv/vfs/vfs_ops.c	(revision ee68e4bc4d0b10815e4ef17fd625a9a33dd1242d)
@@ -364,10 +364,10 @@
 	/* Truncate the file if requested and if necessary. */
 	if (oflag & O_TRUNC) {
-		futex_down(&node->contents_rwlock);
+		rwlock_write_lock(&node->contents_rwlock);
 		if (node->size) {
 			rc = vfs_truncate_internal(node->fs_handle,
 			    node->dev_handle, node->index, 0);
 			if (rc) {
-				futex_up(&node->contents_rwlock);
+				rwlock_write_unlock(&node->contents_rwlock);
 				vfs_node_put(node);
 				ipc_answer_0(rid, rc);
@@ -376,5 +376,5 @@
 			node->size = 0;
 		}
-		futex_up(&node->contents_rwlock);
+		rwlock_write_unlock(&node->contents_rwlock);
 	}
 
