[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200210151915.GA686798@kroah.com>
Date: Mon, 10 Feb 2020 07:19:15 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Oliver O'Halloran <oohall@...il.com>
Cc: linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Paul Mackerras <paulus@...ba.org>,
Sukadev Bhattiprolu <sukadev@...ux.ibm.com>,
Anju T Sudhakar <anju@...ux.vnet.ibm.com>
Subject: Re: [PATCH 6/6] powerpc: powernv: no need to check return value of
debugfs_create functions
On Tue, Feb 11, 2020 at 02:01:53AM +1100, Oliver O'Halloran wrote:
> On Mon, Feb 10, 2020 at 12:12 AM Greg Kroah-Hartman
> <gregkh@...uxfoundation.org> wrote:
> >
> > When calling debugfs functions, there is no need to ever check the
> > return value. The function can work or not, but the code logic should
> > never do something different based on this.
>
> For memtrace debugfs is the only way to actually use the feature. It'd
> be nice if it still printed out *something* if it failed to create the
> files rather than just being mysteriously absent, but maybe debugfs
> itself does that. Looks fine otherwise.
No, debugfs will only spit out an error message to the log if a
file/directory is attempted to be created for an already present
file/directory.
For other failures, no error will be printed, other than the normal
lower-level "out of memory" issues that might rarely happen.
thanks,
greg k-h
Powered by blists - more mailing lists