nfs: Use ida_simple API
authorMatthew Wilcox <willy@infradead.org>
Thu, 15 Mar 2018 02:48:27 +0000 (19:48 -0700)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commitaae5730e2d32d779b31c81fa62e79c8e3bba1ac2
treef8b3fe99694ce89a8b2de350033c828d9141ee4e
parent35156bfff3c0cd44d0e2e674530e0817fd22b313
nfs: Use ida_simple API

Allocate the owner_id when we allocate the state and free it when we free
the state.  That lets us get rid of a gnarly ida_pre_get() / ida_get_new()
loop.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4state.c