fs/kernel: -O3 fixes

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>