tmpfs is under CONFIG_TMPFS which can be disabled.
ramfs is always enabled.

Signed-off-by: Alexey Dobriyan <adobri...@gmail.com>
---

        fold into proc-test-proc-maps-smaps-smaps_rollup-statm.patch

 tools/testing/selftests/proc/proc-pid-vm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/tools/testing/selftests/proc/proc-pid-vm.c
+++ b/tools/testing/selftests/proc/proc-pid-vm.c
@@ -20,7 +20,6 @@
  * Test /proc/$PID/smaps_rollup
  * Test /proc/$PID/statm
  *
- * FIXME require CONFIG_TMPFS which can be disabled
  * FIXME test other values from "smaps"
  * FIXME support other archs
  */
@@ -58,7 +57,7 @@ static void make_private_tmp(void)
        if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) {
                exit(1);
        }
-       if (mount(NULL, "/tmp", "tmpfs", 0, NULL) == -1) {
+       if (mount(NULL, "/tmp", "ramfs", 0, NULL) == -1) {
                exit(1);
        }
 }

Reply via email to