tmpfs: remove write-only variables
(cherry picked from commit 80bca63cf48d0f4f1c6cfc1dace1369947eaaa47)