]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check return value of btrfs_cow_block()
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 23 Mar 2012 16:24:19 +0000 (17:24 +0100)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 27 Mar 2012 12:51:20 +0000 (14:51 +0200)
commita9e47fb296a0df3e62463d3f79d113be2b6d8384
tree77d806d5a59168e14927655dfbbe3d49bd7fbe5b
parentd84420429d83747b222def01c6dec31811c2ea0b
Btrfs: check return value of btrfs_cow_block()

The two helper functions commit_cowonly_roots() and
create_pending_snapshot() failed to check the return value from
btrfs_cow_block(), which could at least in theory fail with -ENOSPC from
btrfs_alloc_free_block(). This commit adds the missing checks.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/transaction.c