The patch titled
add swap cache mapping comment
has been added to the -mm tree. Its filename is
add-swap-cache-mapping-comment.patch
Patches currently in -mm which might be from [EMAIL PROTECTED] are
comment-typo-fix.patch
shmem_populate-avoid-an-useless-check-and-some-comments.patch
add-swap-cache-mapping-comment.patch
x86_64-remove-duplicated-sys_time64.patch
uml-rename-kconfig-files-to-be-like-the-other-arches.patch
ptrace-i386-fix-syscall-audit-interaction-with-singlestep.patch
uml-support-ptrace-adds-the-host-sysemu-support-for-uml-and-general-usage.patch
uml-support-reorganize-ptrace_sysemu-support.patch
uml-support-add-ptrace_sysemu_singlestep-option-to-i386.patch
sysemu-fix-sysaudit--singlestep-interaction.patch
uml-support-sysemu-slight-cleanup-and-speedup.patch
uml-workaround-gdb-problems-on-debugging.patch
uml-fix-sigwinch-handler-race-while-waiting-for-signals.patch
uml-fixes-performance-regression-in-activate_mm-and-thus-exec.patch
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
Add some more comments about page->mapping and swapper_space, explaining
their (historical and current) relationship. Such material can be
extracted from the old GIT history (which I used for reference), but having
it in the source is more useful.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
Cc: Hugh Dickins <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
mm/swap_state.c | 5 +++++
1 files changed, 5 insertions(+)
diff -puN mm/swap_state.c~add-swap-cache-mapping-comment mm/swap_state.c
--- 25/mm/swap_state.c~add-swap-cache-mapping-comment Wed Aug 17 14:48:47 2005
+++ 25-akpm/mm/swap_state.c Wed Aug 17 14:48:47 2005
@@ -21,6 +21,11 @@
* swapper_space is a fiction, retained to simplify the path through
* vmscan's shrink_list, to make sync_page look nicer, and to allow
* future use of radix_tree tags in the swap cache.
+ *
+ * In 2.4 and until 2.6.6 pages in the swap cache also had page->mapping ==
+ * &swapper_space (this was the definition of PageSwapCache), but this is no
+ * more true. Instead, we use page->flags for that, and page->mapping is
+ * *ignored* here. However, also take a look at page_mapping().
*/
static struct address_space_operations swap_aops = {
.writepage = swap_writepage,
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html