]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: return free space in cow error path
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 22 Apr 2013 10:53:47 +0000 (10:53 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:15 +0000 (15:55 -0400)
commit75337185b44f3f0e38c9f51918eed3d868c8c5fc
treeffebb5c3de0dcc6e10e90f2c69f276a063edb049
parent5bbb46e06f0198b283e18d98e88014531d7261bb
Btrfs: return free space in cow error path

Replace some BUG_ONs with proper handling and take allocated space back to
free space cache for later use.

We don't have to worry about extent maps since they'd be freed in releasepage
path.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c