[PATCH 0/3] mm: Swap checksum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support for checksumming the swap pages written to disk, using the
same checksum as btrfs (crc32c). Since the contents of the swap do not
matter after a shutdown, the checksum is kept in memory only.

Note that this code does not checksum the software suspend image.

Cesar Eduardo Barros (3):
      mm/swapfile.c: better messages for swap_info_get
      kernel/power/swap.c: do not use end_swap_bio_read
      mm: Swap checksum

 include/linux/swap.h |   31 +++++++-
 kernel/power/swap.c  |   21 +++++-
 mm/Kconfig           |   22 +++++
 mm/Makefile          |    1 +
 mm/page_io.c         |   92 ++++++++++++++++++--
 mm/swapcsum.c        |   94 +++++++++++++++++++++
 mm/swapfile.c        |  186 ++++++++++++++++++++++++++++++++++++++++--
 7 files changed, 429 insertions(+), 18 deletions(-)
 create mode 100644 mm/swapcsum.c

--
Cesar Eduardo Barros
cesarb@xxxxxxxxxx
cesar.barros@xxxxxxxxx

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]