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)
commit11c3b79218390a139f2d474ee1e983a672d5839a
tree03fa1a4927f2d9856ee45a64d522424478058b6f
parent6d8344baee99402de58b5fa5dfea197242955c15
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