Re: [PATCH] fault-inject: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops

From: Greg KH
Date: Wed Oct 30 2019 - 05:10:56 EST


On Wed, Oct 30, 2019 at 04:22:36PM +0800, zhong jiang wrote:
> It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file
> operation rather than DEFINE_SIMPLE_ATTRIBUTE.

Why does this matter? What does this change? You are changing how some
of the file reference counting works now, are you sure this is ok?

thanks,

greg k-h