From: Akinobu Mita <amgta@yacht.ocn.ne.jp>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@zip.com.au>
Subject: [PATCH] mb_cache_shrink() frees unexpected caches
Date: Thu, 14 Jul 2005 22:07:24 +0900 [thread overview]
Message-ID: <1121346444.4282.8.camel@localhost.localdomain> (raw)
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);
}
next reply other threads:[~2005-07-14 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-14 13:07 Akinobu Mita [this message]
2005-07-15 10:49 ` [PATCH] mb_cache_shrink() frees unexpected caches 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1121346444.4282.8.camel@localhost.localdomain \
--to=amgta@yacht.ocn.ne.jp \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox