devpts: hoist out check for DEVPTS_SUPER_MAGIC
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 13 Mar 2018 16:55:24 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2018 09:39:26 +0000 (11:39 +0200)
commitcd360be6488cf3e455ca6be57fff6f6fcc787b15
treed63e9f528d7db0697279711264e042c1832edd20
parent7499390b8ba5e4c9d378d301f7fd7db9be28f922
devpts: hoist out check for DEVPTS_SUPER_MAGIC

commit 7d71109df186d630a41280670c8d71d0cf9b0da9 upstream.

Hoist the check whether we have already found a suitable devpts filesystem
out of devpts_ptmx_path() in preparation for the devpts bind-mount
resolution patch. This is a non-functional change.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/devpts/inode.c