/*++\r
\r
-Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
IN FAT_VOLUME *Volume,\r
IN CACHE_DATA_TYPE DataType,\r
IN IO_MODE IoMode,\r
- IN CACHE_TAG *CacheTag\r
+ IN CACHE_TAG *CacheTag,\r
+ IN FAT_TASK *Task\r
)\r
/*++\r
\r
//\r
// Only fat table writing will execute more than once\r
//\r
- Status = FatDiskIo (Volume, IoMode, EntryPos, RealSize, PageAddress);\r
+ Status = FatDiskIo (Volume, IoMode, EntryPos, RealSize, PageAddress, Task);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
// Write dirty cache page back to disk\r
//\r
if (CacheTag->RealSize > 0 && CacheTag->Dirty) {\r
- Status = FatExchangeCachePage (Volume, CacheDataType, WRITE_DISK, CacheTag);\r
+ Status = FatExchangeCachePage (Volume, CacheDataType, WRITE_DISK, CacheTag, NULL);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
// Load new data from disk;\r
//\r
CacheTag->PageNo = PageNo;\r
- Status = FatExchangeCachePage (Volume, CacheDataType, READ_DISK, CacheTag);\r
+ Status = FatExchangeCachePage (Volume, CacheDataType, READ_DISK, CacheTag, NULL);\r
\r
return Status;\r
}\r
IN IO_MODE IoMode,\r
IN UINT64 Offset,\r
IN UINTN BufferSize,\r
- IN OUT UINT8 *Buffer\r
+ IN OUT UINT8 *Buffer,\r
+ IN FAT_TASK *Task\r
)\r
/*++\r
Routine Description:\r
\r
EntryPos = Volume->RootPos + LShiftU64 (PageNo, PageAlignment);\r
AlignedSize = AlignedPageCount << PageAlignment;\r
- Status = FatDiskIo (Volume, IoMode, EntryPos, AlignedSize, Buffer);\r
+ Status = FatDiskIo (Volume, IoMode, EntryPos, AlignedSize, Buffer, Task);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
\r
EFI_STATUS\r
FatVolumeFlushCache (\r
- IN FAT_VOLUME *Volume\r
+ IN FAT_VOLUME *Volume,\r
+ IN FAT_TASK *Task\r
)\r
/*++\r
\r
//\r
// Write back all Dirty Data Cache Page to disk\r
//\r
- Status = FatExchangeCachePage (Volume, CacheDataType, WRITE_DISK, CacheTag);\r
+ Status = FatExchangeCachePage (Volume, CacheDataType, WRITE_DISK, CacheTag, Task);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r