Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Document idr_get_new_above() semantics, update inotify
There is an off by one problem with idr_get_new_above. The comment and function name suggest that it will return an id > starting_id, but it actually returned an id >= starting_id, and kernel callers other than inotify treated it as such. The patch below fixes the comment, and fixes inotifys usage. The function name still doesn't match the behaviour, but it never did. Signed-off-by: John McCutchan <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information