Commit 9510dc4c authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Chris Mason

Btrfs: stop leaking btrfs_bios on readahead

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 306c8b68
...@@ -423,6 +423,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root, ...@@ -423,6 +423,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root,
} }
spin_unlock(&fs_info->reada_lock); spin_unlock(&fs_info->reada_lock);
kfree(multi);
return re; return re;
error: error:
...@@ -447,6 +448,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root, ...@@ -447,6 +448,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root,
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment