Revert "Avoid memory allocation while opening smackfs files."

This reverts commit 0426039bffdb82b0f7974639c1c1e361929b1cd5.