projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
740c3d2
)
Btrfs: fix extent_buffer leak in the metadata IO error handling
author
Chris Mason
<chris.mason@oracle.com>
Fri, 4 Nov 2011 02:23:13 +0000
(22:23 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Sun, 6 Nov 2011 08:09:10 +0000
(
03:09
-0500)
The scrub readahead branch brought in a new error handling hook,
but it was leaking extent_buffer references.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index
0eb1f09
..
40a62b9
100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-644,6
+644,7
@@
static int btree_io_failed_hook(struct bio *failed_bio,
clear_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags);
btree_readahead_hook(root, eb, eb->start, -EIO);
}
+ free_extent_buffer(eb);
out:
return -EIO; /* we fixed nothing */