Btrfs: stop leaking btrfs_bios on readahead
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
committed by
Chris Mason
parent
306c8b68c8
commit
9510dc4c62
@@ -423,6 +423,7 @@ again:
|
|||||||
}
|
}
|
||||||
spin_unlock(&fs_info->reada_lock);
|
spin_unlock(&fs_info->reada_lock);
|
||||||
|
|
||||||
|
kfree(multi);
|
||||||
return re;
|
return re;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
@@ -447,6 +448,7 @@ error:
|
|||||||
kref_put(&zone->refcnt, reada_zone_release);
|
kref_put(&zone->refcnt, reada_zone_release);
|
||||||
spin_unlock(&fs_info->reada_lock);
|
spin_unlock(&fs_info->reada_lock);
|
||||||
}
|
}
|
||||||
|
kfree(multi);
|
||||||
kfree(re);
|
kfree(re);
|
||||||
if (looped)
|
if (looped)
|
||||||
goto again;
|
goto again;
|
||||||
|
Reference in New Issue
Block a user