btrfs: simplify code with bio_io_error
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 2 Jun 2017 08:08:50 +0000 (16:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:01 +0000 (18:26 +0200)
commit054ec2f626ed5bc1633addfabb1d8de1b56f949d
treeeb184c938d79ab0ac5a66e8d6fd34e21617ffeaf
parent25ff17e82f9612dcd1cf4668acb2148e18305507
btrfs: simplify code with bio_io_error

bio_io_error was introduced in the commit 4246a0b63bd8f56a1469b
("block: add a bi_error field to struct bio"), so use it to simplify
code.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c