diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-11-28 09:56:36 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2018-02-06 16:40:31 -0500 |
commit | 234a4624efe5629a777b4c00dbdf41dd8b7332db (patch) | |
tree | 887bef7403ebe2d39c7d1afc33bd22d72c276d76 /include/linux/idr.h | |
parent | 9c160941403ba833c8e67981806ccae73ff7aca7 (diff) | |
download | lwn-234a4624efe5629a777b4c00dbdf41dd8b7332db.tar.gz lwn-234a4624efe5629a777b4c00dbdf41dd8b7332db.zip |
idr: Delete idr_replace_ext function
Changing idr_replace's 'id' argument to 'unsigned long' works for all
callers. Callers which passed a negative ID now get -ENOENT instead of
-EINVAL. No callers relied on this error value.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'include/linux/idr.h')
-rw-r--r-- | include/linux/idr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/idr.h b/include/linux/idr.h index 118987a17ada..f1299c4dc45f 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -136,8 +136,7 @@ int idr_for_each(const struct idr *, int (*fn)(int id, void *p, void *data), void *data); void *idr_get_next(struct idr *, int *nextid); void *idr_get_next_ext(struct idr *idr, unsigned long *nextid); -void *idr_replace(struct idr *, void *, int id); -void *idr_replace_ext(struct idr *idr, void *ptr, unsigned long id); +void *idr_replace(struct idr *, void *, unsigned long id); void idr_destroy(struct idr *); static inline void *idr_remove(struct idr *idr, unsigned long id) |