Per-mount allocated_ptys
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Fri, 2 Jan 2009 13:41:21 +0000 (13:41 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:35 +0000 (10:19 -0800)
commite76b7c01e598d2d14ddfdb6ae5c6afe45245d0de
tree1ecd14fb7aa17e49857d20d974e843edd20bbedc
parent59e55e6cf86eb472e8373831c4234252916c53ef
Per-mount allocated_ptys

To enable multiple mounts of devpts, 'allocated_ptys' must be a per-mount
variable rather than a global variable.  Move 'allocated_ptys' into the
super_block's s_fs_info.

Changelog[v2]:
Define and use DEVPTS_SB() wrapper.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/devpts/inode.c