Btrfs: cleanup pages properly when ENOMEM in compression
authorJosef Bacik <[email protected]>
Fri, 5 Oct 2012 17:39:50 +0000 (13:39 -0400)
committerChris Mason <[email protected]>
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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
fs/btrfs/compression.c