Re: [PATCH 3/5 v2] tracing: Automatically mount tracefs on debugfs/tracing

From: Al Viro
Date: Sun Jan 25 2015 - 15:31:25 EST


On Sun, Jan 25, 2015 at 08:27:29PM +0000, Al Viro wrote:

> Turns out that it is better that way (and less prone to abuse). See
> vfs.git#debugfs_automount; some massage on top of 3.19-rc5, the payoff is
> in the last commit.
>
> For your code it's a matter of replacing struct path *path with void *unused
> in trace_automount() and just calling
> debugfs_create_automount("tracing", NULL, trace_automount, NULL);
> to create the sucker. That's it - no games with ->d_op, etc.

... and the total is plus 8 lines. Would be negative, if not for the
kerneldoc comment in there...
--
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/