aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2011-11-04 09:41:02 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-06 03:11:08 -0500
commit9510dc4c62252e96dca44a94948327c76774f25b (patch)
tree945a5a2df3c4c84cec80dee60c1c67751e5489b8
parent306c8b68c82dfe6b7c9e5b61985760ad5d089205 (diff)
Btrfs: stop leaking btrfs_bios on readahead
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/reada.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index cd857119ba8a..35eaf6893679 100644
--- a/fs/btrfs/reada.c
+++ b/fs/btrfs/reada.c
@@ -423,6 +423,7 @@ again:
423 } 423 }
424 spin_unlock(&fs_info->reada_lock); 424 spin_unlock(&fs_info->reada_lock);
425 425
426 kfree(multi);
426 return re; 427 return re;
427 428
428error: 429error:
@@ -447,6 +448,7 @@ error:
447 kref_put(&zone->refcnt, reada_zone_release); 448 kref_put(&zone->refcnt, reada_zone_release);
448 spin_unlock(&fs_info->reada_lock); 449 spin_unlock(&fs_info->reada_lock);
449 } 450 }
451 kfree(multi);
450 kfree(re); 452 kfree(re);
451 if (looped) 453 if (looped)
452 goto again; 454 goto again;