Commit e11f2cc4 authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] mm: swapper_space.i_mmap_nonlinear

Initialize swapper_space.i_mmap_nonlinear, so mapping_mapped reports false on
it (as it used to do).  Update comment on swapper_space, now more fields are
used than those initialized explicitly.
Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e3223421
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
/* /*
* swapper_space is a fiction, retained to simplify the path through * swapper_space is a fiction, retained to simplify the path through
* vmscan's shrink_list. Only those fields initialized below are used. * vmscan's shrink_list, to make sync_page look nicer, and to allow
* future use of radix_tree tags in the swap cache.
*/ */
static struct address_space_operations swap_aops = { static struct address_space_operations swap_aops = {
.writepage = swap_writepage, .writepage = swap_writepage,
...@@ -36,6 +37,7 @@ struct address_space swapper_space = { ...@@ -36,6 +37,7 @@ struct address_space swapper_space = {
.page_tree = RADIX_TREE_INIT(GFP_ATOMIC), .page_tree = RADIX_TREE_INIT(GFP_ATOMIC),
.tree_lock = SPIN_LOCK_UNLOCKED, .tree_lock = SPIN_LOCK_UNLOCKED,
.a_ops = &swap_aops, .a_ops = &swap_aops,
.i_mmap_nonlinear = LIST_HEAD_INIT(swapper_space.i_mmap_nonlinear),
.backing_dev_info = &swap_backing_dev_info, .backing_dev_info = &swap_backing_dev_info,
}; };
EXPORT_SYMBOL(swapper_space); EXPORT_SYMBOL(swapper_space);
......
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