]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Document idr_get_new_above() semantics, update inotify
authorJohn McCutchan <ttb@tentacle.dhs.org>
Fri, 26 Aug 2005 18:02:04 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 26 Aug 2005 18:32:57 +0000 (11:32 -0700)
commit7c657f2f25d50c602df9291bc6242b98fc090759
tree5e1ae11c320ea00488b33224cc982d0be2d986d6
parent755528c860b05fcecda1c88a2bdaffcb50760a7f
[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 <ttb@tentacle.dhs.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/inotify.c
lib/idr.c