From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024Ab1GCRQa (ORCPT ); Sun, 3 Jul 2011 13:16:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:38434 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064Ab1GCRQ2 (ORCPT ); Sun, 3 Jul 2011 13:16:28 -0400 Date: Sun, 3 Jul 2011 19:16:26 +0200 From: Pavel Machek To: Akinobu Mita Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, "Rafael J. Wysocki" , Greg Kroah-Hartman , Benjamin Herrenschmidt , Paul Mackerras , linux-pm@lists.linux-foundation.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 3/7] fault-injection: notifier error injection Message-ID: <20110703171626.GG21127@elf.ucw.cz> References: <1309702581-16863-1-git-send-email-akinobu.mita@gmail.com> <1309702581-16863-4-git-send-email-akinobu.mita@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1309702581-16863-4-git-send-email-akinobu.mita@gmail.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + for (action = enb->actions; action->name; action++) { > + struct dentry *file = debugfs_create_int(action->name, mode, > + enb->dir, &action->error); > + > + if (!file) { > + debugfs_remove_recursive(enb->dir); > + return -ENOMEM; > + } Few lines how this work would be welcome...? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html