From: Christoph Hellwig Date: Sun, 18 Jul 2010 06:01:06 +0000 Subject: Re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan Message-Id: <20100718060106.GA579@infradead.org> List-Id: References: <4C425273.5000702@gmail.com> <4C427DC8.6020504@redhat.com> In-Reply-To: <4C427DC8.6020504@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Eric Sandeen Cc: Wang Sheng-Hui , linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-mm@kvack.org, linux-ext4 , kernel-janitors , a.gruenbacher@computer.org On Sat, Jul 17, 2010 at 11:06:32PM -0500, Eric Sandeen wrote: > + /* Count remaining entries */ > + spin_lock(&mb_cache_spinlock); > + list_for_each(l, &mb_cache_list) { > + struct mb_cache *cache > + list_entry(l, struct mb_cache, c_cache_list); This should be using list_for_each_entry.