Re: [PATCH] fs/debugfs: add get/set for atomic_long types

Ganesh Mahendran
2014-12-11T22:56:44Z

Hello Greg:

2014-12-11 22:45 GMT+08:00 Greg KH <gregkh@linuxfoundation.org>:
> On Thu, Dec 11, 2014 at 08:47:10PM +0800, Ganesh Mahendran wrote:
>> debugfs currently can not create attributes that set/get
>> atomic_long_t values.
>>
>> This patch adds support for this through a new
>> debugfs_create_atomic_long_t() function.
>>
>> Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
>> ---
>> fs/debugfs/file.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
>> include/linux/debugfs.h | 2 ++
>> 2 files changed, 47 insertions(+)
>
> Do you have kernel code that depends on this?

Currently there is no code that is depending on this.
I found there is not a debugfs API to get/set atomic_long_t when I was debuging
mm/zsmalloc. So I sent this patch.

>
> It's the middle of the merge window, so this will have to wait until
> after 3.19-rc1, ok?

It is OK. It is not an urgent patch.
Thanks so much!

>
> thanks,
>
> greg k-h