obhq / obliteration

Experimental free and open-source PlayStation 4 kernel
https://obliteration.net
Apache License 2.0
620 stars 17 forks source link

Refactors VFile::is_seekable to use VFile::vnode() instead #708

Closed SuchAFuriousDeath closed 6 months ago

SuchAFuriousDeath commented 6 months ago

@ultimaweapon By the way, I think that the vnode item field should be removed and each corresponding variant should be inside VnodeType.

image

Currently, we do unnecesarry checks - FreeBSD has to check the vnode type to ensure that v_un is a pointer of the right type anyway.