public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mb_cache_shrink() frees unexpected caches
@ 2005-07-14 13:07 Akinobu Mita
  2005-07-15 10:49 ` Andreas Gruenbacher
  0 siblings, 1 reply; 8+ messages in thread
From: Akinobu Mita @ 2005-07-14 13:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

mb_cache_shrink() tries to free all sort of mbcache in the lru list.

All user of mb_cache_shrink() are ext2/ext3 xattr.

Signed-off-by: Akinobu Mita <amgta@yacht.ocn.ne.jp>

--- 2.6-rc/fs/mbcache.c.orig	2005-07-14 20:40:34.000000000 +0900
+++ 2.6-rc/fs/mbcache.c	2005-07-14 20:43:42.000000000 +0900
@@ -329,7 +329,7 @@ mb_cache_shrink(struct mb_cache *cache, 
 	list_for_each_safe(l, ltmp, &mb_cache_lru_list) {
 		struct mb_cache_entry *ce =
 			list_entry(l, struct mb_cache_entry, e_lru_list);
-		if (ce->e_bdev == bdev) {
+		if (ce->e_cache == cache && ce->e_bdev == bdev) {
 			list_move_tail(&ce->e_lru_list, &free_list);
 			__mb_cache_entry_unhash(ce);
 		}



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-16  3:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-14 13:07 [PATCH] mb_cache_shrink() frees unexpected caches Akinobu Mita
2005-07-15 10:49 ` Andreas Gruenbacher
2005-07-15 13:41   ` Akinobu Mita
2005-07-15 14:36     ` Andreas Gruenbacher
2005-07-15 15:07       ` Akinobu Mita
2005-07-15 15:30         ` Akinobu Mita
2005-07-16  1:44         ` Andreas Gruenbacher
2005-07-16  3:53           ` Akinobu Mita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox