pstore/ram: Read and write to the 'compressed' flag of pstore
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Fri, 16 Aug 2013 20:58:00 +0000 (13:58 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 19 Aug 2013 18:53:50 +0000 (11:53 -0700)
commit3f8f80f0cfebab185b6fe599c53b63e7e8ae02c9
tree4176db7f1cb1868b6ceb589061df2112f23c0e1f
parentf8c62f34fe868f5bcca88a32e4a5c52b67de661d
pstore/ram: Read and write to the 'compressed' flag of pstore

In pstore write, add character 'C'(compressed) or 'D'(decompressed)
in the header while writing to Ram persistent buffer. In pstore read,
read the header and update the 'compressed' flag accordingly.

Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c