Revert "mm/page_io: remove duplicated compressed pages in memory"

This reverts commit c5ada9b475ea5f65ca62bcd65b3e242188324499.
Revert "binfmt_elf.c: use get_random_int() to fix entropy depleting (Jeff Liu )"

This reverts commit aead5bcb063fb125a5a76e1d2de2031784432621.
Revert "backport SLUB from Linux 3.3 (thanks to faux123)"

This reverts commit 7c42523baec02a42508000d7fde46ca8b53c6b04.
Revert "ARM: SMP: use a timing out completion for cpu hotplug"

This reverts commit c832a774b6916b59e3f9770d506b62cc7b19898e.
Revert "backport: smp: patches from mainline 3.5 to hopefully help with hotplug"

This reverts commit 2632b12279b628e0fb5ec2f1d9acd8937b26e76f.
Revert "mutex: dynamically disable mutex spinning at high load Date Thu, 4 Apr 2013 10:54:18 -0400"

This reverts commit 7338f1afa81e1da66eb49a6f55a03a74a26e69dd.
Revert "mutex: restrict mutex spinning to only one task per mutex"

This reverts commit 0d87d95ab4cbc90a10aecfac0917f8af627988ba.
Revert "mutex: Make more scalable by doing less atomic operations"

This reverts commit 9bebf5253a7f574e0cb48eb8b190bd679c7e5a29.
Switch to GCChf 4.9.1 linaro cortex-a9 optimised toolchain
Squash Updates: zram,zcache,zsmalloc,snappy,lz4,lzo,cleancache
lib: Add support for LZ4-compressed kernel

Date    Tue, 26 Feb 2013 15:24:28 +0900

This patch adds support for extracting LZ4-compressed kernel images,
as well as LZ4-compressed ramdisk images in the kernel boot process.

This depends on the patch below
decompressor: Add LZ4 decompressor module

Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>

v2:
- Clean up code
- Use lz4_decompress() for LZ4-compressed kernel during boot-process

Signed-off-by: Paul Reioux <reioux@gmail.com>
arm: Add support for LZ4-compressed kernel

Date    Tue, 26 Feb 2013 15:24:29 +0900

This patch integrates the LZ4 decompression code to the arm pre-boot code.
And it depends on two patchs below

lib: Add support for LZ4-compressed kernel
decompressor: Add LZ4 decompressor module

Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>

v2:
- Apply CFLAGS, -Os to decompress.o to improve decompress
  performance during boot-up process

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	arch/arm/boot/compressed/Makefile
	arch/arm/boot/compressed/decompress.c

Change-Id: I5c170fba381fc1d0db5bb9e0c1e9b4e42a0b879d
slicing-by-8 algorithm for crc32 and crc32c
dm: suppress endian warnings

Suppress sparse warnings about cpu_to_le32() by using __le32 types for
on-disk data etc.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm: ignore merge_bvec for snapshots when safe

Add a new flag DMF_MERGE_IS_OPTIONAL to struct mapped_device to indicate
whether the device can accept bios larger than the size its merge
function returns.  When set, use this to send large bios to snapshots
which can split them if necessary.  Snapshot I/O may be significantly
fragmented and this approach seems to improve peformance.

Before the patch, dm_set_device_limits restricted bio size to page size
if the underlying device had a merge function and the target didn't
provide a merge function.  After the patch, dm_set_device_limits
restricts bio size to page size if the underlying device has a merge
function, doesn't have DMF_MERGE_IS_OPTIONAL flag and the target doesn't
provide a merge function.

The snapshot target can't provide a merge function because when the merge
function is called, it is impossible to determine where the bio will be
remapped.  Previously this led us to impose a 4k limit, which we can
now remove if the snapshot store is located on a device without a merge
function.  Together with another patch for optimizing full chunk writes,
it improves performance from 29MB/s to 40MB/s when writing to the
filesystem on snapshot store.

If the snapshot store is placed on a non-dm device with a merge function
(such as md-raid), device mapper still limits all bios to page size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm table: share target argument parsing functions

Move multipath target argument parsing code into dm-table so other
targets can share it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm crypt: optionally support discard requests

Add optional parameter field to dmcrypt table and support
"allow_discards" option.

Discard requests bypass crypt queue processing. Bio is simple remapped
to underlying device.

Note that discard will be never enabled by default because of security
consequences.  It is up to the administrator to enable it for encrypted
devices.

(Note that userspace cryptsetup does not understand new optional
parameters yet.  Support for this will come later.  Until then, you
should use 'dmsetup' to enable and disable this.)

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
kernel/signal.c : fix build warning
Added v3.4 defconfig and updated build script