[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101020024118.GF3740@amd>
Date: Wed, 20 Oct 2010 13:41:18 +1100
From: Nick Piggin <npiggin@...nel.dk>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: npiggin@...nel.dk, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [patch 27/35] fs: icache split IO and LRU lists
On Tue, Oct 19, 2010 at 06:12:07PM +0200, Miklos Szeredi wrote:
> On Tue, 19 Oct 2010, npiggin@...nel.d wrote:
> > @@ -422,7 +422,11 @@
> > /*
> > * The inode is clean
> > */
> > - list_move(&inode->i_list, &inode_unused);
> > + list_del_init(&inode->i_io);
> > + if (list_empty(&inode->i_lru)) {
> > + list_add(&inode->i_lru, &inode_unused);
> > + inodes_stat.nr_unused++;
>
> It's not obvious where this came from. How come nr_unused was
> correctly accounted with the previous, list_move() version?
Yes... inode is considered unused if it has 0 refcount, even if
it is dirty. This hunk must have crept in from somewhere else,
good catch.
Thanks,
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists