mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +00:00
[NTFS]
Don't force the run-time priority boost in NtfsFsdDispatch(). Some dispatched MJ functions might want to adjust it (MJ_READ/MJ_WRITE/MJ_CREATE). The same should be actually done in FastFAT. I believe that would help avoiding several code duplications... svn path=/trunk/; revision=67624
This commit is contained in:
parent
4b508e967a
commit
e1c4e3ae3a
4 changed files with 7 additions and 5 deletions
|
@ -82,7 +82,7 @@ NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject,
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
Irp->IoStatus.Status = Status;
|
Irp->IoStatus.Status = Status;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IrpContext->PriorityBoost);
|
||||||
|
|
||||||
if (IrpContext)
|
if (IrpContext)
|
||||||
ExFreePoolWithTag(IrpContext, 'PRIN');
|
ExFreePoolWithTag(IrpContext, 'PRIN');
|
||||||
|
|
|
@ -271,10 +271,10 @@ NtfsQueryInformation(PNTFS_IRP_CONTEXT IrpContext)
|
||||||
|
|
||||||
case FileNameInformation:
|
case FileNameInformation:
|
||||||
Status = NtfsGetNameInformation(FileObject,
|
Status = NtfsGetNameInformation(FileObject,
|
||||||
Fcb,
|
Fcb,
|
||||||
DeviceObject,
|
DeviceObject,
|
||||||
SystemBuffer,
|
SystemBuffer,
|
||||||
&BufferLength);
|
&BufferLength);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileInternalInformation:
|
case FileInternalInformation:
|
||||||
|
|
|
@ -87,6 +87,7 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
|
||||||
IrpContext->MinorFunction = IrpContext->Stack->MinorFunction;
|
IrpContext->MinorFunction = IrpContext->Stack->MinorFunction;
|
||||||
IrpContext->FileObject = IrpContext->Stack->FileObject;
|
IrpContext->FileObject = IrpContext->Stack->FileObject;
|
||||||
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
||||||
|
IrpContext->PriorityBoost = IO_NO_INCREMENT;
|
||||||
|
|
||||||
if (IrpContext->MajorFunction == IRP_MJ_FILE_SYSTEM_CONTROL ||
|
if (IrpContext->MajorFunction == IRP_MJ_FILE_SYSTEM_CONTROL ||
|
||||||
IrpContext->MajorFunction == IRP_MJ_DEVICE_CONTROL ||
|
IrpContext->MajorFunction == IRP_MJ_DEVICE_CONTROL ||
|
||||||
|
|
|
@ -406,6 +406,7 @@ typedef struct
|
||||||
PDEVICE_OBJECT DeviceObject;
|
PDEVICE_OBJECT DeviceObject;
|
||||||
PFILE_OBJECT FileObject;
|
PFILE_OBJECT FileObject;
|
||||||
NTSTATUS SavedExceptionCode;
|
NTSTATUS SavedExceptionCode;
|
||||||
|
CCHAR PriorityBoost;
|
||||||
} NTFS_IRP_CONTEXT, *PNTFS_IRP_CONTEXT;
|
} NTFS_IRP_CONTEXT, *PNTFS_IRP_CONTEXT;
|
||||||
|
|
||||||
typedef struct _NTFS_ATTR_CONTEXT
|
typedef struct _NTFS_ATTR_CONTEXT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue