]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit656ca8bbfab09459549f6cbcb13da0452d4f0422
treea236b9090d541ed2c24e4fa9e3ee19c1237fc33f
parentf7552d5ab67136566beaa170167e198c0f93f84f
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