]> git.baikalelectronics.ru Git - kernel.git/commit
configfs: Allow ->make_item() and ->make_group() to return detailed errors.
authorJoel Becker <joel.becker@oracle.com>
Thu, 12 Jun 2008 21:00:18 +0000 (14:00 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 14 Jul 2008 20:57:16 +0000 (13:57 -0700)
commite00d18f87eea754fb6545c5662b6fd00e84c200e
tree03fa1a4927f2d9856ee45a64d522424478058b6f
parent878a619b9c73af57c6243c2e0a49dcb799871fb8
configfs: Allow ->make_item() and ->make_group() to return detailed errors.

The configfs operations ->make_item() and ->make_group() currently
return a new item/group.  A return of NULL signifies an error.  Because
of this, -ENOMEM is the only return code bubbled up the stack.

Multiple folks have requested the ability to return specific error codes
when these operations fail.  This patch adds that ability by changing the
->make_item/group() ops to return an int.

Also updated are the in-kernel users of configfs.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Documentation/filesystems/configfs/configfs.txt
Documentation/filesystems/configfs/configfs_example.c
drivers/net/netconsole.c
fs/configfs/dir.c
fs/dlm/config.c
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/cluster/nodemanager.c
include/linux/configfs.h