[NTFS] Start using different tags for allocations.
authorPierre Schweitzer <pierre@reactos.org>
Sun, 31 Dec 2017 22:11:12 +0000 (23:11 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 31 Dec 2017 22:11:57 +0000 (23:11 +0100)
They all be Ntf? as for the Windows NTFS driver

drivers/filesystems/ntfs/fsctl.c
drivers/filesystems/ntfs/ntfs.c
drivers/filesystems/ntfs/ntfs.h

index 87858e0..c85f1bf 100644 (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)
index 53733e1..c29bada 100644 (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;
index 7b88f7b..a0cb6ab 100644 (file)
        ((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;