]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: unlock extent and pages on error in cow_file_range
authorJosef Bacik <jbacik@fb.com>
Fri, 7 Feb 2014 17:21:23 +0000 (12:21 -0500)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:53 +0000 (15:15 -0400)
commitce9d1f5d6176ed642aa0ab46e63fa4a9255be7d9
tree7a7c02ba24263b07ddb1d0716832ff985a4f74f3
parent6718d6aa1543c1f30e5d83eb7151a5d6266e3627
Btrfs: unlock extent and pages on error in cow_file_range

When I converted the BUG_ON() for the free_space_cache_inode in cow_file_range I
made it so we just return an error instead of unlocking all of our various
stuff.  This is a mistake and causes us to hang when we run into this.  This
patch fixes this problem.  Thanks,

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