Merge code for single and multiple-instance mounts
commit1bd7903560f1f713e85188a5aaf4d2428b6c8b50
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Sat, 7 Mar 2009 18:12:32 +0000 (7 10:12 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:04 +0000 (27 14:44 -0400)
tree0b6faa6cb51effe327dfecbd6a05e7a3b50debfe
parent289f00e225a6f60056644e0fd7e4081cb140c631
Merge code for single and multiple-instance mounts

new_pts_mount() (including the get_sb_nodev()), shares a lot of code
with init_pts_mount(). The only difference between them is the 'test-super'
function passed into sget().

Move all common code into devpts_get_sb() and remove the new_pts_mount() and
init_pts_mount() functions,

Changelog[v3]:
[Serge Hallyn]: Remove unnecessary printk()s
Changelog[v2]:
(Christoph Hellwig): Merge code in 'do_pts_mount()' into devpts_get_sb()

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Tested-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/devpts/inode.c