]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zero out left over bytes after processing compression streams
authorChris Mason <clm@fb.com>
Sun, 30 Nov 2014 13:56:33 +0000 (08:56 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Nov 2014 17:33:51 +0000 (09:33 -0800)
commit7d6331f8657c7b8915b2111ff3b41a4a4d4a1a41
treeca1a69874842c86904ff6b66cb7430c818f2baa4
parent589d5640758852225dd7cd62be35e690c2a5522f
btrfs: zero out left over bytes after processing compression streams

Don Bailey noticed that our page zeroing for compression at end-io time
isn't complete.  This reworks a patch from Linus to push the zeroing
into the zlib and lzo specific functions instead of trying to handle the
corners inside btrfs_decompress_buf2page

Signed-off-by: Chris Mason <clm@fb.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reported-by: Don A. Bailey <donb@securitymouse.com>
cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/lzo.c
fs/btrfs/zlib.c