Retrive file size in post-create

Hello everyone!
How I can legal retrive file size in post-create without any system deadlock and checking od IoGetTopLevelIrp ?
Thanks to all for help!

FsRtlGetFileSize() - it’s a right and safety solution?