[Linux-stable-mirror] [PATCH 4.14 050/164] btrfs: handle errors while updating refcounts in update_ref_for_cow