]> git.baikalelectronics.ru Git - kernel.git/commit
mm: clarify the radix_tree exceptional cases
authorHugh Dickins <hughd@google.com>
Wed, 3 Aug 2011 23:21:28 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Aug 2011 00:25:24 +0000 (14:25 -1000)
commit39b8f310bf0a3c53ae06a887a1bfe493b97feb2a
tree677e77a4c9d3b9c33427196cb5f860ebcf530b15
parente0f951805b20d378c0198f712275546b433fd4f4
mm: clarify the radix_tree exceptional cases

Make the radix_tree exceptional cases, mostly in filemap.c, clearer.

It's hard to devise a suitable snappy name that illuminates the use by
shmem/tmpfs for swap, while keeping filemap/pagecache/radix_tree
generality.  And akpm points out that /* radix_tree_deref_retry(page) */
comments look like calls that have been commented out for unknown
reason.

Skirt the naming difficulty by rearranging these blocks to handle the
transient radix_tree_deref_retry(page) case first; then just explain the
remaining shmem/tmpfs swap case in a comment.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c
mm/mincore.c
mm/shmem.c