mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Added some initializations in CcRosInitializeCache().
svn path=/trunk/; revision=2277
This commit is contained in:
parent
a92ab23917
commit
74be6cd705
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: view.c,v 1.28 2001/09/02 15:38:46 dwelch Exp $
|
/* $Id: view.c,v 1.29 2001/10/10 21:50:15 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -303,6 +303,11 @@ CcRosInitializeFileCache(PFILE_OBJECT FileObject,
|
||||||
InitializeListHead(&(*Bcb)->CacheSegmentListHead);
|
InitializeListHead(&(*Bcb)->CacheSegmentListHead);
|
||||||
KeInitializeSpinLock(&(*Bcb)->BcbLock);
|
KeInitializeSpinLock(&(*Bcb)->BcbLock);
|
||||||
(*Bcb)->CacheSegmentSize = CacheSegmentSize;
|
(*Bcb)->CacheSegmentSize = CacheSegmentSize;
|
||||||
|
if (FileObject->FsContext)
|
||||||
|
{
|
||||||
|
(*Bcb)->AllocationSize = ((REACTOS_COMMON_FCB_HEADER*)FileObject->FsContext)->AllocationSize;
|
||||||
|
(*Bcb)->FileSize = ((REACTOS_COMMON_FCB_HEADER*)FileObject->FsContext)->FileSize;
|
||||||
|
}
|
||||||
|
|
||||||
DPRINT("Finished CcRosInitializeFileCache() = %x\n", *Bcb);
|
DPRINT("Finished CcRosInitializeFileCache() = %x\n", *Bcb);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue