[BTRFS]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 10 May 2016 21:08:50 +0000 (21:08 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 10 May 2016 21:08:50 +0000 (21:08 +0000)
Cherry pick d71baf195715601212a2043f153400a964da6a18: Don't remove an entry list twice in add_to_space_list()

This avoids linked list entry twice removal

CORE-11057

svn path=/trunk/; revision=71315

reactos/drivers/filesystems/btrfs/write.c

index 293182c..e166b50 100644 (file)
@@ -250,10 +250,6 @@ void add_to_space_list(chunk* c, UINT64 offset, UINT64 size, UINT8 type) {
         }
         
         if (s->offset >= offset && s->offset + s->size <= offset + size) { // delete entirely
         }
         
         if (s->offset >= offset && s->offset + s->size <= offset + size) { // delete entirely
-#ifndef __REACTOS__
-            RemoveEntryList(&s->list_entry);
-#endif
-            
             if (s->offset + s->size == offset + size) {
                 insbef = s->list_entry.Flink;
                 RemoveEntryList(&s->list_entry);
             if (s->offset + s->size == offset + size) {
                 insbef = s->list_entry.Flink;
                 RemoveEntryList(&s->list_entry);