[13/85] ext4: release page cache in ext4_mb_load_buddy error path

From: Greg KH
Date: Thu Jun 16 2011 - 03:10:29 EST

2.6.33-longterm review patch. If anyone has any objections, please let us know.


From: Yang Ruirui <ruirui.r.yang@xxxxxxxxx>

commit 26626f1172fb4f3f323239a6a5cf4e082643fa46 upstream.

Add missing page_cache_release in the error path of ext4_mb_load_buddy

Signed-off-by: Yang Ruirui <ruirui.r.yang@xxxxxxxxx>
Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

fs/ext4/mballoc.c | 2 ++
1 file changed, 2 insertions(+)

--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1138,6 +1138,8 @@ repeat_load_buddy:
return 0;

+ if (page)
+ page_cache_release(page);
if (e4b->bd_bitmap_page)
if (e4b->bd_buddy_page)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/