From: Sukadev Bhattiprolu Date: Wed, 30 Apr 2008 07:54:21 +0000 (-0700) Subject: devpts: factor out PTY index allocation X-Git-Tag: v2.6.26-rc1~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718a916338e821a10961e6a7a17430c18e5e58d9;p=pandora-kernel.git devpts: factor out PTY index allocation Factor out the code used to allocate/free a pts index into new interfaces, devpts_new_index() and devpts_kill_index(). This localizes the external data structures used in managing the pts indices. [akpm@linux-foundation.org: undo accidental mutex2sem conversion] Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Serge Hallyn Signed-off-by: Matt Helsley Acked-by: H. Peter Anvin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed