btrfs-progs: fix copy-n-paste error checking
authorZach Brown <zab@redhat.com>
Fri, 18 Jan 2013 00:36:48 +0000 (16:36 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:38 +0000 (16:09 -0800)
commitba4791fde3495c04648038c7376f21bd7b3298a6
tree55e393dbb627eef7e13e581bdf6fa85c92e0a42b
parentd86394da233c4305fb72daf72914cbb193373e1d
btrfs-progs: fix copy-n-paste error checking

copy_one_inline() meant to test the return of pwrite() with ram_size.
Presumably the comparison with len was copied from the test earlier in
the function.

Signed-off-by: Zach Brown <zab@redhat.com>
restore.c