summaryrefslogtreecommitdiffstats
path: root/fs/dlm/member.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-02-28 02:04:50 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 04:10:19 +0100
commit4542da631ad210716d097aa803a0828f9fed5e87 (patch)
treeea7254bb010ea1cd95cc7893657838e6e0860ee4 /fs/dlm/member.h
parentdlm: convert to idr_alloc() (diff)
downloadlinux-4542da631ad210716d097aa803a0828f9fed5e87.tar.xz
linux-4542da631ad210716d097aa803a0828f9fed5e87.zip
inotify: convert to idr_alloc()
Convert to the much saner new idr interface. Note that the adhoc cyclic id allocation is buggy. If wraparound happens, the previous code with idr_get_new_above() may segfault and the converted code will trigger WARN and return -EINVAL. Even if it's fixed to wrap to zero, the code will be prone to unnecessary -ENOSPC failures after the first wraparound. We probably need to implement proper cyclic support in idr. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: John McCutchan <john@johnmccutchan.com> Cc: Robert Love <rlove@rlove.org> Cc: Eric Paris <eparis@parisplace.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/dlm/member.h')
0 files changed, 0 insertions, 0 deletions