]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Make the radix_tree exceptional cases, mostly in filemap.c, clearer.
authorHugh Dickins <hughd@google.com>
Wed, 3 Aug 2011 00:52:55 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Aug 2011 04:19:27 +0000 (14:19 +1000)
commitba2f5b60eebcc5c0871d882c6dc9dfb0365d8c91
treee97ad22263dc46bb4125a682bcd5a063ab9cf3da
parent4e2cc9c0298b5db3e8ef8c2719b65bbf694a9b30
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>
mm/filemap.c
mm/mincore.c
mm/shmem.c