diff options
author | Nick Piggin <npiggin@suse.de> | 2007-10-16 01:24:42 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:42:53 -0700 |
commit | c0bc9875b701c588e448302d41181995c21e8040 (patch) | |
tree | c320855d4c04bd51ded6b4888bc5895ab539165f /Documentation | |
parent | b55ed816235cf41c29159d22a4cdeec7deb5821c (diff) | |
download | linux-3.10-c0bc9875b701c588e448302d41181995c21e8040.tar.gz linux-3.10-c0bc9875b701c588e448302d41181995c21e8040.tar.bz2 linux-3.10-c0bc9875b701c588e448302d41181995c21e8040.zip |
radix-tree: use indirect bit
Rather than sign direct radix-tree pointers with a special bit, sign the
indirect one that hangs off the root. This means that, given a lookup_slot
operation, the invalid result will be differentiated from the valid
(previously, valid results could have the bit either set or clear).
This does not affect slot lookups which occur under lock -- they can never
return an invalid result. Is needed in future for lockless pagecache.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions