mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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. [[email protected]: undo accidental mutex2sem conversion] Signed-off-by: Sukadev Bhattiprolu <[email protected]> Signed-off-by: Serge Hallyn <[email protected]> Signed-off-by: Matt Helsley <[email protected]> Acked-by: H. Peter Anvin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>