diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index f5be06a2462f..119f842c1d4f 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1770,18 +1770,18 @@ static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, | |||
1770 | { | 1770 | { |
1771 | int ret; | 1771 | int ret; |
1772 | u64 discarded_bytes = 0; | 1772 | u64 discarded_bytes = 0; |
1773 | struct btrfs_multi_bio *multi = NULL; | 1773 | struct btrfs_bio *bbio = NULL; |
1774 | 1774 | ||
1775 | 1775 | ||
1776 | /* Tell the block device(s) that the sectors can be discarded */ | 1776 | /* Tell the block device(s) that the sectors can be discarded */ |
1777 | ret = btrfs_map_block(&root->fs_info->mapping_tree, REQ_DISCARD, | 1777 | ret = btrfs_map_block(&root->fs_info->mapping_tree, REQ_DISCARD, |
1778 | bytenr, &num_bytes, &multi, 0); | 1778 | bytenr, &num_bytes, &bbio, 0); |
1779 | if (!ret) { | 1779 | if (!ret) { |
1780 | struct btrfs_bio_stripe *stripe = multi->stripes; | 1780 | struct btrfs_bio_stripe *stripe = bbio->stripes; |
1781 | int i; | 1781 | int i; |
1782 | 1782 | ||
1783 | 1783 | ||
1784 | for (i = 0; i < multi->num_stripes; i++, stripe++) { | 1784 | for (i = 0; i < bbio->num_stripes; i++, stripe++) { |
1785 | if (!stripe->dev->can_discard) | 1785 | if (!stripe->dev->can_discard) |
1786 | continue; | 1786 | continue; |
1787 | 1787 | ||
@@ -1800,7 +1800,7 @@ static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, | |||
1800 | */ | 1800 | */ |
1801 | ret = 0; | 1801 | ret = 0; |
1802 | } | 1802 | } |
1803 | kfree(multi); | 1803 | kfree(bbio); |
1804 | } | 1804 | } |
1805 | 1805 | ||
1806 | if (actual_bytes) | 1806 | if (actual_bytes) |