[NTOSKRNL] When pinning data, try to find an already pinned BCB
authorPierre Schweitzer <pierre@reactos.org>
Fri, 5 Oct 2018 19:14:13 +0000 (21:14 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 5 Oct 2018 19:26:16 +0000 (21:26 +0200)
commit7fd2751c873a59f449b7f3421bdb17488f53253e
tree01f790392efe5a942e841e8bc7b892866ec7eddc
parent9fc75c11322e45fa02a8b65780f4f53b0ffbb9fb
[NTOSKRNL] When pinning data, try to find an already pinned BCB

If found, attempt to lock it and return it.

This fixes a lot of CcPinRead tests (and seems to speed up a bit ReactOS)
ntoskrnl/cc/pin.c