Btrfs: put the right bio if we have an error
authorJosef Bacik <josef@redhat.com>
Mon, 25 Apr 2011 23:43:52 +0000 (19:43 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 25 Apr 2011 23:43:52 +0000 (19:43 -0400)
commit64728bbbf892ea7a4aba502c436afbe362217fb9
tree40741804bbf62d942c5b440345de03866cb46c41
parenta4f0162fd4490daf2c823c185fff79080d266a7c
Btrfs: put the right bio if we have an error

In btrfs_submit_direct_hook if the first btrfs_map_block fails we need to put
the orig_bio, not bio.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c