btrfs: ->submit_bio_hook error push-up
This pushes failures from the submit_bio_hook callbacks, btrfs_submit_bio_hook and btree_submit_bio_hook into the callers, including callers of submit_one_bio where it catches the failures with BUG_ON. It also pushes up through the ->readpage_io_failed_hook to end_bio_extent_writepage where the error is already caught with BUG_ON. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
committed by
David Sterba
parent
3444a97255
commit
355808c296
@@ -847,9 +847,9 @@ static int btree_submit_bio_hook(struct inode *inode, int rw, struct bio *bio,
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = btrfs_bio_wq_end_io(BTRFS_I(inode)->root->fs_info,
|
||||
bio, 1);
|
||||
BUG_ON(ret);
|
||||
ret = btrfs_bio_wq_end_io(BTRFS_I(inode)->root->fs_info, bio, 1);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (!(rw & REQ_WRITE)) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user