[PATCH] swapper_space.i_mmap_nonlinear
From: Hugh Dickins
Date: Wed Jun 02 2004 - 15:06:40 EST
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: Hugh Dickins <hugh@xxxxxxxxxxx>
mm/swap_state.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
--- 2.6.7-rc2/mm/swap_state.c 2004-05-30 11:36:40.000000000 +0100
+++ linux/mm/swap_state.c 2004-06-02 16:31:21.890093952 +0100
@@ -19,7 +19,8 @@
/*
* 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 = {
.writepage = swap_writepage,
@@ -36,6 +37,7 @@ struct address_space swapper_space = {
.page_tree = RADIX_TREE_INIT(GFP_ATOMIC),
.tree_lock = SPIN_LOCK_UNLOCKED,
.a_ops = &swap_aops,
+ .i_mmap_nonlinear = LIST_HEAD_INIT(swapper_space.i_mmap_nonlinear),
.backing_dev_info = &swap_backing_dev_info,
};
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/