Skip to content
Snippets Groups Projects
Commit 72fd6c7b authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

idr: Warn if old iterators see large IDs


Now that the IDR can be used to store large IDs, it is possible somebody
might only partially convert their old code and use the iterators which
can only handle IDs up to INT_MAX.  It's probably unwise to show them a
truncated ID, so settle for spewing warnings to dmesg, and terminating
the iteration.

Signed-off-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
parent 7a457577
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment