sysfs: allocate inode number using ida
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:13 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:03 +0000 (16:09 -0700)
commit2b611bb7abdcc08278453fc9f6517401fd69ef95
treea236b9090d541ed2c24e4fa9e3ee19c1237fc33f
parentfa7f912ad4ae0ed7591add52422e48282389652d
sysfs: allocate inode number using ida

sysfs used simple incrementing allocator which is not guaranteed to be
unique.  This patch makes sysfs use ida to give each sd a unique and
packed inode number.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c