Commit ae931b63 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] radix-tree comment fix

Fix various bogons and outright lies.
parent 4c538514
...@@ -365,7 +365,7 @@ struct block_device { ...@@ -365,7 +365,7 @@ struct block_device {
}; };
/* /*
* Radix-tre tags, for tagging dirty and writeback pages within the pagecache * Radix-tree tags, for tagging dirty and writeback pages within the pagecache
* radix trees * radix trees
*/ */
#define PAGECACHE_TAG_DIRTY 0 #define PAGECACHE_TAG_DIRTY 0
......
...@@ -30,12 +30,7 @@ ...@@ -30,12 +30,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/bitops.h> #include <linux/bitops.h>
/*
* Radix tree node definition.
*
* RADIX_TREE_MAP_SHIFT must be >= log2(BITS_PER_LONG). Otherwise the tags
* array will have zero size and the set_tag() arithmetic will go wrong.
*/
#ifdef __KERNEL__ #ifdef __KERNEL__
#define RADIX_TREE_MAP_SHIFT 6 #define RADIX_TREE_MAP_SHIFT 6
#else #else
......
...@@ -551,7 +551,7 @@ unsigned find_get_pages(struct address_space *mapping, pgoff_t start, ...@@ -551,7 +551,7 @@ unsigned find_get_pages(struct address_space *mapping, pgoff_t start,
/* /*
* Like find_get_pages, except we only return pages which are tagged with * Like find_get_pages, except we only return pages which are tagged with
* `tag'. We update *start to index the next page for the traversal. * `tag'. We update *index to index the next page for the traversal.
*/ */
unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index, unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index,
int tag, unsigned int nr_pages, struct page **pages) int tag, unsigned int nr_pages, struct page **pages)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment