Revert "loader: enable loading libraries from tmpfs"

This reverts commit bb8b22a087db32773f1a9cd3473061f3ad714afc.

http://b/37245203
http://b/37590327
Change-Id: I36f45697f7478b830947d641942e453ed0d5466e
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 53f0608..66bec58 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -36,7 +36,6 @@
 #include <string.h>
 #include <sys/mman.h>
 #include <sys/param.h>
-#include <sys/vfs.h>
 #include <unistd.h>
 
 #include <new>
@@ -1192,15 +1191,7 @@
     return false;
   }
 
-  struct statfs fs_stat;
-  if (TEMP_FAILURE_RETRY(fstatfs(task->get_fd(), &fs_stat)) != 0) {
-    DL_ERR("unable to fstatfs file for the library \"%s\": %s", name, strerror(errno));
-    return false;
-  }
-
-  // do not check accessibility using realpath if fd is located on tmpfs
-  // this enables use of memfd_create() for apps
-  if ((fs_stat.f_type != TMPFS_MAGIC) && (!ns->is_accessible(realpath))) {
+  if (!ns->is_accessible(realpath)) {
     // TODO(dimitry): workaround for http://b/26394120 - the grey-list
 
     // TODO(dimitry) before O release: add a namespace attribute to have this enabled