diff options
author | Jan Kara <jack@suse.cz> | 2010-08-09 20:19:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:44:59 -0400 |
commit | ebf8aa44beed48cd17893a83d92a4403e5f9d9e2 (patch) | |
tree | 03607aa1cdbbb7fda935edb28bb3ad06423852ac /include/linux/radix-tree.h | |
parent | 44ab57a06ded284db6ccdefc6b76eddb1c34d7ed (diff) |
radix-tree: omplement function radix_tree_range_tag_if_tagged
Implement function for setting one tag if another tag is set for each item
in given range.
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/radix-tree.h')
-rw-r--r-- | include/linux/radix-tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index 55ca73cf25e5..a4b00e9cca90 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h | |||
@@ -192,6 +192,10 @@ unsigned int | |||
192 | radix_tree_gang_lookup_tag_slot(struct radix_tree_root *root, void ***results, | 192 | radix_tree_gang_lookup_tag_slot(struct radix_tree_root *root, void ***results, |
193 | unsigned long first_index, unsigned int max_items, | 193 | unsigned long first_index, unsigned int max_items, |
194 | unsigned int tag); | 194 | unsigned int tag); |
195 | unsigned long radix_tree_range_tag_if_tagged(struct radix_tree_root *root, | ||
196 | unsigned long *first_indexp, unsigned long last_index, | ||
197 | unsigned long nr_to_tag, | ||
198 | unsigned int fromtag, unsigned int totag); | ||
195 | int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag); | 199 | int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag); |
196 | 200 | ||
197 | static inline void radix_tree_preload_end(void) | 201 | static inline void radix_tree_preload_end(void) |