From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kinglong Mee Subject: Re: [PATCH] fscache: put reference of parent's usage and n_children Date: Mon, 13 Apr 2015 20:23:12 +0800 Message-ID: <552BB530.50405@gmail.com> References: <5527C9A0.6030502@gmail.com> <30571.1428924822@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, "linux-nfs@vger.kernel.org" To: David Howells Return-path: Received: from mail-pd0-f176.google.com ([209.85.192.176]:36078 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753115AbbDMMXT (ORCPT ); Mon, 13 Apr 2015 08:23:19 -0400 In-Reply-To: <30571.1428924822@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 4/13/2015 7:33 PM, David Howells wrote: > Kinglong Mee wrote: > >> If netfs exist, fscache must put the reference of parent's >> usage and n_children, otherwise, never be decreased. > > Good catch. Though it might be preferable to only increment the counters if > the list_add() is done. Thanks for your comments, that's great. I will update and resend those two patch. Thanks, Kinglong Mee