()
| 93 | } |
| 94 | |
| 95 | public void deallocate() { |
| 96 | if (allocated) { |
| 97 | ownerFilesystem.deallocateEntry(this); |
| 98 | doDeallocate(); |
| 99 | allocationTime = -1L; |
| 100 | allocated = false; |
| 101 | additionalNodes.clear(); |
| 102 | // NOTE: This is recursive! |
| 103 | getChildren().stream().forEach((node) -> { |
| 104 | node.deallocate(); |
| 105 | }); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | public void refresh() throws IOException { |
| 110 | deallocate(); |
no test coverage detected