Move common mknod_ptmx() calls into caller
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Sat, 7 Mar 2009 18:11:41 +0000 (10:11 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:04 +0000 (14:44 -0400)
commit945cf2c79f6fbb1b74e3b0ca08f48b6af56ad412
tree82ef6088dc080f12bd330c095e605c06ef66dd50
parent482984f06df54d886995a4383d2f5bb85e3de945
Move common mknod_ptmx() calls into caller

We create 'ptmx' node in both single-instance and multiple-instance
mounts. So devpts_get_sb() can call mknod_ptmx() once rather than
have both modes calling mknod_ptmx() separately.

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