From: Nick Piggin Subject: Re: [PATCH] Destroy the dentries contributed by a superblock on unmounting Date: Mon, 26 Jun 2006 02:30:34 +1000 Message-ID: <449EBA2A.5030501@yahoo.com.au> References: <17566.12727.489041.220653@cse.unsw.edu.au> <17564.52290.338084.934211@cse.unsw.edu.au> <15603.1150978967@warthog.cambridge.redhat.com> <553.1151156031@warthog.cambridge.redhat.com> <20946.1151251352@warthog.cambridge.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Neil Brown , balbir@in.ibm.com, akpm@osdl.org, aviro@redhat.com, jblunck@suse.de, dev@openvz.org, olh@suse.de, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from smtp105.mail.mud.yahoo.com ([209.191.85.215]:12395 "HELO smtp105.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S1751149AbWFYQah (ORCPT ); Sun, 25 Jun 2006 12:30:37 -0400 To: David Howells In-Reply-To: <20946.1151251352@warthog.cambridge.redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org David Howells wrote: > + for (;;) { > + /* descend to the first leaf in the current subtree */ > + while (!list_empty(&dentry->d_subdirs)) { > + /* this dentry has children - pin it whilst we dispose > + * of them */ > + atomic_inc(&dentry->d_count); > + dentry = list_entry(dentry->d_subdirs.next, > + struct dentry, d_u.d_child); > + } > + > + consume_empty_leaf: Just to nitpick, the indented label goes against the style in this part of the kernel. -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com