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

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

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

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

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

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

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

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

This reverts commit 8710ba796c128870a66b463ec15e36f55ba7b884.
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