From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Waychison Subject: Re: [PATCH v1 3/8] Deferred batching of iput() Date: Tue, 20 Jan 2009 12:07:35 -0800 Message-ID: <49762F07.1050404@google.com> References: <20090117022936.20425.43248.stgit@crlf.corp.google.com> <20090117022952.20425.91639.stgit@crlf.corp.google.com> <20090117101809.GB2682@ioremap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Evgeniy Polyakov Return-path: Received: from smtp-out.google.com ([216.239.45.13]:59073 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756862AbZATUHq (ORCPT ); Tue, 20 Jan 2009 15:07:46 -0500 In-Reply-To: <20090117101809.GB2682@ioremap.net> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Evgeniy Polyakov wrote: > On Fri, Jan 16, 2009 at 06:29:52PM -0800, Mike Waychison (mikew@google.com) wrote: >> +static void postpone_iput(struct inode *inode) >> +{ >> + struct postponed_inodes *ppi, *new_ppi; >> + >> +again: >> + ppi = get_cpu_var(postponed_inodes); >> + if (!pending_iput_full(ppi)) { >> + add_pending_iput(ppi, inode); >> + put_cpu_var(postponed_inodes); >> + return; >> + } >> + >> + /* Need to flush out existing pending inodes */ >> + put_cpu_var(postponed_inodes); >> + /* Allocate more space.. */ >> + new_ppi = new_postponed_inodes(); >> + if (!new_ppi) { >> + struct postponed_inodes_onstack ppi_onstack; >> + >> + ppi = init_ppi_onstack(&ppi_onstack); >> + add_pending_iput(ppi, inode); >> + process_postponed_inodes(ppi); >> + return; >> + } > > The same here: what just not to call a real_iput() without on-stack > allocation and the line? > Agreed. Will fix in the next version.