platform: minor VFS optimization and cleanup