mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
- Call MmFreeSectionSegments if the Bcb reference count is zero (in CcRosReleaseFileCache).
svn path=/trunk/; revision=10917
This commit is contained in:
parent
06bac7f0b9
commit
035b22b542
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: view.c,v 1.77 2004/08/25 15:08:29 navaraf Exp $
|
||||
/* $Id: view.c,v 1.78 2004/09/19 12:11:44 hbirr Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/cc/view.c
|
||||
|
@ -1088,6 +1088,7 @@ CcRosReleaseFileCache(PFILE_OBJECT FileObject)
|
|||
Bcb->RefCount--;
|
||||
if (Bcb->RefCount == 0)
|
||||
{
|
||||
MmFreeSectionSegments(Bcb->FileObject);
|
||||
if (Bcb->RemoveOnClose)
|
||||
{
|
||||
CcRosDeleteFileCache(FileObject, Bcb);
|
||||
|
|
Loading…
Reference in a new issue