FltWriteFile to a diff file in paging pre-write callback

Hello everybody,

I have a minifilter which redirects write to a file foobar1.txt to foobar2.txt.
So, whenever a write callback comes, I issue FltWriteFile to the other file.

However, I am concerned about paging writes.

My question is that when a paging write comes, I suppose the locks have been acquired for file foobar1.txt. Now if i issue FltWriteFile with FLTFL_IO_OPERATION_PAGING flag set for foobar2.txt, will it do the right thing? That is, will it acquire the locks on behalf of this call?

Whats the correct way to handle this condition?

Thank you.