get rid of ->mnt_longterm

it's enough to set ->mnt_ns of internal vfsmounts to something
distinct from all struct mnt_namespace out there; then we can
just use the check for ->mnt_ns != NULL in the fast path of
mntput_no_expire()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2012-06-09 00:59:08 -04:00
parent d187663ef2
commit f7a99c5b7c
5 changed files with 26 additions and 72 deletions

View File

@@ -2622,7 +2622,7 @@ global_root:
if (!slash)
error = prepend(buffer, buflen, "/", 1);
if (!error)
error = real_mount(vfsmnt)->mnt_ns ? 1 : 2;
error = is_mounted(vfsmnt) ? 1 : 2;
goto out;
}