mm/huge_memory.c: use head to emphasize the purpose of page
[linux-2.6-microblaze.git] / fs / d_path.c
index a7d0a96..0f1fc17 100644 (file)
@@ -116,8 +116,10 @@ restart:
                                vfsmnt = &mnt->mnt;
                                continue;
                        }
-                       if (!error)
-                               error = is_mounted(vfsmnt) ? 1 : 2;
+                       if (is_mounted(vfsmnt) && !is_anon_ns(mnt->mnt_ns))
+                               error = 1;      // absolute root
+                       else
+                               error = 2;      // detached or not attached yet
                        break;
                }
                parent = dentry->d_parent;