[NTFS] Start using different tags for allocations.

They all be Ntf? as for the Windows NTFS driver
This commit is contained in:
Pierre Schweitzer 2017-12-31 23:11:12 +01:00
parent e7459b0cc2
commit d2a5322576
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 9 additions and 7 deletions

View file

@ -275,7 +275,7 @@ NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
ExFreePool(BootSector);
ExInitializeNPagedLookasideList(&DeviceExt->FileRecLookasideList,
NULL, NULL, 0, NtfsInfo->BytesPerFileRecord, TAG_NTFS, 0);
NULL, NULL, 0, NtfsInfo->BytesPerFileRecord, TAG_FILE_REC, 0);
DeviceExt->MasterFileTable = ExAllocateFromNPagedLookasideList(&DeviceExt->FileRecLookasideList);
if (DeviceExt->MasterFileTable == NULL)

View file

@ -142,13 +142,13 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
/* Initialize lookaside list for IRP contexts */
ExInitializeNPagedLookasideList(&NtfsGlobalData->IrpContextLookasideList,
NULL, NULL, 0, sizeof(NTFS_IRP_CONTEXT), 'PRIN', 0);
NULL, NULL, 0, sizeof(NTFS_IRP_CONTEXT), TAG_IRP_CTXT, 0);
/* Initialize lookaside list for FCBs */
ExInitializeNPagedLookasideList(&NtfsGlobalData->FcbLookasideList,
NULL, NULL, 0, sizeof(NTFS_FCB), TAG_FCB, 0);
/* Initialize lookaside list for attributes contexts */
ExInitializeNPagedLookasideList(&NtfsGlobalData->AttrCtxtLookasideList,
NULL, NULL, 0, sizeof(NTFS_ATTR_CONTEXT), TAG_NTFS, 0);
NULL, NULL, 0, sizeof(NTFS_ATTR_CONTEXT), TAG_ATT_CTXT, 0);
/* Driver can't be unloaded */
DriverObject->DriverUnload = NULL;

View file

@ -14,7 +14,12 @@
((pDeviceExt)->NtfsInfo.UCHARsPerCluster > PAGE_SIZE ? \
(pDeviceExt)->NtfsInfo.UCHARsPerCluster : PAGE_SIZE)
#define TAG_NTFS 'SFTN'
#define TAG_NTFS '0ftN'
#define TAG_CCB 'CftN'
#define TAG_FCB 'FftN'
#define TAG_IRP_CTXT 'iftN'
#define TAG_ATT_CTXT 'aftN'
#define TAG_FILE_REC 'rftN'
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
#define ROUND_DOWN(N, S) ((N) - ((N) % (S)))
@ -140,9 +145,6 @@ typedef struct
ULONG LastOffset;
} NTFS_CCB, *PNTFS_CCB;
#define TAG_CCB 'BCCI'
#define TAG_FCB 'BCFI'
typedef struct
{
NTFSIDENTIFIER Identifier;