devpts: Convert to new IDA API
authorMatthew Wilcox <willy@infradead.org>
Mon, 11 Jun 2018 19:17:58 +0000 (15:17 -0400)
committerMatthew Wilcox <willy@infradead.org>
Wed, 22 Aug 2018 03:54:17 +0000 (23:54 -0400)
commit0f0a0e54a2a15174535349db3a22355a6b1cf5fa
tree6e011cfaeb3d11f8cab3d0581fad70b6afef7277
parent169b480e4c8b7409119458ebfb755283a5fc9826
devpts: Convert to new IDA API

ida_alloc_max() matches what this driver wants to do.  Also removes a
call to ida_pre_get().  We no longer need the protection of the mutex,
so convert pty_count to an atomic_t and remove the mutex entirely.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
fs/devpts/inode.c