configfs: Prevent duplicate subsystem names.
authorJoel Becker <joel.becker@oracle.com>
Wed, 13 Sep 2006 18:01:19 +0000 (11:01 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 20 Sep 2006 22:46:14 +0000 (15:46 -0700)
commitb4c98f625fffee3a6f633082e9e4be3e952ca2ab
treeff7832706aeab7b16cbe18dd7976be7b56c49e55
parente478bec0ba0a83a48a0f6982934b6de079e7e6b3
configfs: Prevent duplicate subsystem names.

For all child objects, creation comes through mkdir(2), so duplicate names
are prevented.

Subsystems, though, are registered by client drivers at init_module()/__init
time.  This patch prevents duplicate subsystem names.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/configfs/dir.c