Thread (3 messages) flat view 3 messages, 2 authors, 2011-07-04

Re: [PATCH 3/7] fault-injection: notifier error injection

From: Akinobu Mita <akinobu.mita@gmail.com>
Date: 2011-07-04 05:35:09
Also in: linux-mm, lkml

2011/7/4 Pavel Machek [off-list ref]:
quoted
+ =A0 =A0 for (action =3D enb->actions; action->name; action++) {
+ =A0 =A0 =A0 =A0 =A0 =A0 struct dentry *file =3D debugfs_create_int(act=
ion->name, mode,
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 enb->dir, &action->error);
quoted
+
+ =A0 =A0 =A0 =A0 =A0 =A0 if (!file) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 debugfs_remove_recursive(enb->=
dir);
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -ENOMEM;
+ =A0 =A0 =A0 =A0 =A0 =A0 }
Few lines how this work would be welcome...?
OK, I'll add a comment like below.

/*
 * Create debugfs r/w file containing action->error. If notifier call
 * chain is called with action->val, it will fail with the error code
 */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help