Re: [PATCH] Destroy the dentries contributed by a superblock on unmounting

From: Nick Piggin
Date: Sun Jun 25 2006 - 12:29:11 EST


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 -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/