Btrfs: cleanup pages properly when ENOMEM in compression
authorJosef Bacik <jbacik@fusionio.com>
Fri, 5 Oct 2012 17:39:50 +0000 (13:39 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:20:25 +0000 (09:20 -0400)
commit15e3004a0eb2c4879bc666d0e6a3acd973fb226c
tree8a811ff44a0763227ddfb27eec702593c765c356
parent5af3e8cce8b7ba0a2819e18c9146c8c0b452d479
Btrfs: cleanup pages properly when ENOMEM in compression

We were freeing non-existent pages which was causing a panic for a user who
was suffering from ENOMEM.  This patch fixes the problem.  Thanks,

Reported-by: Jérôme Poulin <jeromepoulin@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/compression.c