debugfs: add get/set for atomic types
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Mon, 3 Jun 2013 20:33:02 +0000 (15:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 20:55:01 +0000 (13:55 -0700)
commit3a76e5e09fbb51e756b4e732e3e65446f4984cf5
treeb08061613e352317bc3189abff31609279c0f2fa
parent4993632218e2202d4f110c8e83ae819ca26e6845
debugfs: add get/set for atomic types

debugfs currently lack the ability to create attributes
that set/get atomic_t values.

This patch adds support for this through a new
debugfs_create_atomic_t() function.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/file.c
include/linux/debugfs.h
lib/fault-inject.c