* [PATCH] ext4: release page cache in ext4_mb_load_buddy error path
@ 2011-04-14 6:44 Yang Ruirui
2011-04-16 23:07 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Yang Ruirui @ 2011-04-14 6:44 UTC (permalink / raw)
To: tytso, linux-ext4, linux-kernel
Add missing page_cache_release in the error path of ext4_mb_load_buddy
Signed-off-by: Yang Ruirui <ruirui.r.yang@tieto.com>
---
fs/ext4/mballoc.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-2.6.orig/fs/ext4/mballoc.c 2011-04-14 14:04:48.000000000 +0800
+++ linux-2.6/fs/ext4/mballoc.c 2011-04-14 14:33:28.702958245 +0800
@@ -1273,6 +1273,8 @@ repeat_load_buddy:
return 0;
err:
+ if (page)
+ page_cache_release(page);
if (e4b->bd_bitmap_page)
page_cache_release(e4b->bd_bitmap_page);
if (e4b->bd_buddy_page)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-16 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-14 6:44 [PATCH] ext4: release page cache in ext4_mb_load_buddy error path Yang Ruirui
2011-04-16 23:07 ` Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox