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:
parent
2998edc39b
commit
11ef678c43
@ -971,8 +971,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
||||
}
|
||||
} visitor;
|
||||
device->VisitEachDescendant(&visitor);
|
||||
if (device->ShadowPartition())
|
||||
device->ShadowPartition()->VisitEachDescendant(&visitor);
|
||||
// Iterate through all job queues and all jobs scheduled or in
|
||||
// progress and mark their scope busy.
|
||||
for (int32 cookie = 0;
|
||||
@ -989,8 +987,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
||||
if (!partition || partition->Device() != device)
|
||||
continue;
|
||||
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
|
||||
@ -1016,8 +1012,6 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device)
|
||||
}
|
||||
} visitor2;
|
||||
device->VisitEachDescendant(&visitor2);
|
||||
if (device->ShadowPartition())
|
||||
device->ShadowPartition()->VisitEachDescendant(&visitor2);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user