diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-14 17:02:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-14 17:02:51 -0700 |
| commit | ae931b63bab89b28010cf9b0f16d12cdb4dbd08d (patch) | |
| tree | 5af03d4e0060f37dd4a10deb5d65183f189d71c9 | |
| parent | 4c5385148b60b9c88df8635ceb6ec81a49cab0ab (diff) | |
[PATCH] radix-tree comment fix
Fix various bogons and outright lies.
| -rw-r--r-- | include/linux/fs.h | 2 | ||||
| -rw-r--r-- | lib/radix-tree.c | 7 | ||||
| -rw-r--r-- | mm/filemap.c | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3d7c320d675e..c9fb9bbe154a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -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 */ #define PAGECACHE_TAG_DIRTY 0 diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 5fb59f715eab..1d0a884b9170 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -30,12 +30,7 @@ #include <linux/string.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__ #define RADIX_TREE_MAP_SHIFT 6 #else diff --git a/mm/filemap.c b/mm/filemap.c index c83a97b5aed7..4149342710f1 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -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 - * `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, int tag, unsigned int nr_pages, struct page **pages) |
