From: Al Viro Subject: Re: pstore: fix leaking ->i_private Date: Fri, 18 Mar 2011 18:57:50 +0000 Message-ID: <20110318185750.GM22723@ZenIV.linux.org.uk> References: <20110316235608.GY22723@ZenIV.linux.org.uk> <20110317072344.GZ22723@ZenIV.linux.org.uk> <4d83a82032021e2997@agluck-desktop.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Xiaotian Feng , Linus Torvalds , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: "Luck, Tony" Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:38254 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756588Ab1CRS5y (ORCPT ); Fri, 18 Mar 2011 14:57:54 -0400 Content-Disposition: inline In-Reply-To: <4d83a82032021e2997@agluck-desktop.sc.intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Mar 18, 2011 at 11:44:48AM -0700, Luck, Tony wrote: > From: Tony Luck > > Move kfree() of i_private out of ->unlink() and into ->evict_inode() > > Signed-off-by: Tony Luck Applied (with one trivial change - in your case it doesn't matter, but people do copy from weird places and conceptually you want to get VFS end any async activity on inode before starting to tear it apart, so end_writeback() should normally go first).