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>
Wed, 14 Mar 2018 12:31:23 +0000 (13:31 +0100)
commit7d71109df186d630a41280670c8d71d0cf9b0da9
tree1d91e78c891889f3385b4bdaae33b6312b2d971c
parentf597fbce38d230af95384f4a04e0a13a1d0ad45d
devpts: hoist out check for DEVPTS_SUPER_MAGIC

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