]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: pass locked_page into extent_clear_unlock_delalloc if theres an error
authorJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 19:35:17 +0000 (15:35 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 01:29:09 +0000 (21:29 -0400)
commitbeb42dd793193a3d4e72970bfa73cd8810f63cea
tree8690e35c2da24fff82e61556b362cb736c8edf49
parent1e20932a23578bb1ec59107843574e259b96193f
Btrfs: pass locked_page into extent_clear_unlock_delalloc if theres an error

While doing my enospc work I got a transaction abortion that resulted in a
panic when we tried to unlock_page() an already unlocked page.  This is
because we aren't calling extent_clear_unlock_delalloc with the locked page
so it was unlocking all the pages in the range.  This is wrong since
__extent_writepage expects to have the page locked still unless we return
*page_started as 1.  This should keep us from panicing.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c