We don't need to mark/unmark shadow partitions busy separately anymore, since they should automatically remain in sync with the physical ones.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4850 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -971,8 +971,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
|||||||
}
|
}
|
||||||
} visitor;
|
} visitor;
|
||||||
device->VisitEachDescendant(&visitor);
|
device->VisitEachDescendant(&visitor);
|
||||||
if (device->ShadowPartition())
|
|
||||||
device->ShadowPartition()->VisitEachDescendant(&visitor);
|
|
||||||
// Iterate through all job queues and all jobs scheduled or in
|
// Iterate through all job queues and all jobs scheduled or in
|
||||||
// progress and mark their scope busy.
|
// progress and mark their scope busy.
|
||||||
for (int32 cookie = 0;
|
for (int32 cookie = 0;
|
||||||
@@ -989,8 +987,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
|||||||
if (!partition || partition->Device() != device)
|
if (!partition || partition->Device() != device)
|
||||||
continue;
|
continue;
|
||||||
partition->AddFlags(B_PARTITION_BUSY);
|
partition->AddFlags(B_PARTITION_BUSY);
|
||||||
if (KPartition *shadow = partition->ShadowPartition())
|
|
||||||
shadow->AddFlags(B_PARTITION_BUSY);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// mark all anscestors of busy partitions descendant busy and all
|
// mark all anscestors of busy partitions descendant busy and all
|
||||||
@@ -1016,8 +1012,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
|||||||
}
|
}
|
||||||
} visitor2;
|
} visitor2;
|
||||||
device->VisitEachDescendant(&visitor2);
|
device->VisitEachDescendant(&visitor2);
|
||||||
if (device->ShadowPartition())
|
|
||||||
device->ShadowPartition()->VisitEachDescendant(&visitor2);
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user