Squashed revert of chromium zram changes

Revert "CHROMIUM: UPSTREAM: staging: zsmalloc: remove x86 dependency"
This reverts commit 21465fdcfec8dd8af3e9ad40ef20fd53850b4ea3.

Revert "CHROMIUM: BACKPORT: staging: zsmalloc: Finish conversion to a separate module"
This reverts commit 80a2bf0b31af7d0c2a035dac11f6b46e8ef73c19.

Revert "CHROMIUM: zsmalloc: add MODULE_LICENSE"
This reverts commit 3afc63e31493832b516eee8da77ac17036914cf4.

Revert "CHROMIUM: UPSTREAM: staging: zram/zcache: swtich Kconfig dependency from X86 to ZSMALLOC"
This reverts commit be815863fbf0547679bdef659ae5d4ec1e165d94.
Import zram & zsmalloc from kernel 3.14
zram/zsmalloc: Compatibility fixes for kernel 3.4

Revert changes done in the following upstream commits:
22b751c3d0376e86a377e3a0aa2ddbbe9d2eefc1 mm: rename page struct field helpers
4f024f3797c43cb4b73cd2c50cec728842d0e49e block: Abstract out bvec iterator
7988613b0e5b2638caf6cd493cc78e9595eba19c block: Convert bio_for_each_segment() to bvec_iter
defconfigs: Regenerate after new zram/zsmalloc
zram: Disable allocation failure logging

Disable the logging of errors when allocations fail
for zram pages. This avoid excessive logging when system is
very low on memory.

Change-Id: Ifabcf8f1b9c3e3717599d6a0a924f7b2061f00ea
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
zram: Change ratio to 90% for bad compress

Change the ratio for determining whether or not we should store
pages as uncompressed in zram. This will allow zram to fit more
data since more of the pages will be stored as compressed.

Change-Id: I37170cafff7e8a4cc44f1622fe52a6cbff85f218
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
staging: zram: Rate limit memory allocation errors

If an error occurs allocating memory for zram we will not be able
to fullfill the request to store the page in zram. The swap subsystem
still continues to try to swap out pages to zram even when this error
occurs since there is currently no facility to stop the swap subsystem
from swapping out during such errors. This can cause the system to be
overflowed with logging errors.

Reduce the amount of logging to prevent the kernel log
from being filled with these error messages.

Change-Id: I54b920337749ece59d9ca78fa8b29345ec7b976b
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>