linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xas_prev() on an idr tree? idr_get_prev()?
@ 2019-03-18 17:36 Manfred Spraul
  2019-03-18 18:18 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Manfred Spraul @ 2019-03-18 17:36 UTC (permalink / raw)
  To: Matthew Wilcox, Davidlohr Bueso, Waiman Long, linux-fsdevel; +Cc: 1vier1

Hi,

the ipc code needs to find the highest index allocated in an idr tree.
It is part of the user space API: The return value of semctl(), msgctl() 
for ..._INFO contains that number.

Right now, the number is updated by calling idr_find(--idx), until this 
succeeds.
(ipc_rmid() in ipc/util.c).

Is there a a standard function already?

Should I create a patch that adds idr_get_prev() to the idr API?

--

     Manfred


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-26  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-18 17:36 xas_prev() on an idr tree? idr_get_prev()? Manfred Spraul
2019-03-18 18:18 ` Matthew Wilcox
2020-03-26  9:20   ` Manfred Spraul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).