mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 00:10:39 +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;
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
IoCompleteRequest(Irp, IrpContext->PriorityBoost);
|
||||
|
||||
if (IrpContext)
|
||||
ExFreePoolWithTag(IrpContext, 'PRIN');
|
||||
|
|
|
@ -271,10 +271,10 @@ NtfsQueryInformation(PNTFS_IRP_CONTEXT IrpContext)
|
|||
|
||||
case FileNameInformation:
|
||||
Status = NtfsGetNameInformation(FileObject,
|
||||
Fcb,
|
||||
DeviceObject,
|
||||
SystemBuffer,
|
||||
&BufferLength);
|
||||
Fcb,
|
||||
DeviceObject,
|
||||
SystemBuffer,
|
||||
&BufferLength);
|
||||
break;
|
||||
|
||||
case FileInternalInformation:
|
||||
|
|
|
@ -87,6 +87,7 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
|
|||
IrpContext->MinorFunction = IrpContext->Stack->MinorFunction;
|
||||
IrpContext->FileObject = IrpContext->Stack->FileObject;
|
||||
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
||||
IrpContext->PriorityBoost = IO_NO_INCREMENT;
|
||||
|
||||
if (IrpContext->MajorFunction == IRP_MJ_FILE_SYSTEM_CONTROL ||
|
||||
IrpContext->MajorFunction == IRP_MJ_DEVICE_CONTROL ||
|
||||
|
|
|
@ -406,6 +406,7 @@ typedef struct
|
|||
PDEVICE_OBJECT DeviceObject;
|
||||
PFILE_OBJECT FileObject;
|
||||
NTSTATUS SavedExceptionCode;
|
||||
CCHAR PriorityBoost;
|
||||
} NTFS_IRP_CONTEXT, *PNTFS_IRP_CONTEXT;
|
||||
|
||||
typedef struct _NTFS_ATTR_CONTEXT
|
||||
|
|
Loading…
Reference in a new issue