ramdisk: maintenance and cleanup for v5.1

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>