Skip to content
Commit 103e9766 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

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: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
parent e565d4b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment