]> git.baikalelectronics.ru Git - kernel.git/commit
9p: Replace the fidlist with an IDR
authorMatthew Wilcox <willy@infradead.org>
Wed, 11 Jul 2018 21:02:22 +0000 (14:02 -0700)
committerDominique Martinet <dominique.martinet@cea.fr>
Mon, 13 Aug 2018 00:21:44 +0000 (09:21 +0900)
commitd1e069a2d80f933e039dd06ccfb4927f51bf3224
tree26c62e06986d2a7a46680c272b2db065cda9a38c
parentc5f7e0730a8e7ff938c858e5f8efacbb4a57c2be
9p: Replace the fidlist with an IDR

The p9_idpool being used to allocate the IDs uses an IDR to allocate
the IDs ... which we then keep in a doubly-linked list, rather than in
the IDR which allocated them.  We can use an IDR directly which saves
two pointers per p9_fid, and a tiny memory allocation per p9_client.

Link: http://lkml.kernel.org/r/20180711210225.19730-4-willy@infradead.org
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
include/net/9p/client.h
net/9p/client.c