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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user