Btrfs: sysfs compile fixup
authorJens Axboe <jens.axboe@oracle.com>
Fri, 19 Oct 2007 13:23:08 +0000 (09:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commitb4a2a0edfda5a721bb4c5fa0068d2ad7ea67f98b
tree77fb5ea8e40249955dbe0aa5039ea7a56ec2c4f3
parentbbf0d0062da2b3e1e239e381f8ac20971ef1b2ed
Btrfs: sysfs compile fixup

Just use kobject_set_name(), that works in all kernels (I think...).
Kernels newer than 2.6.23 currently fail with:

/home/axboe/git/btrfs/btrfs-unstable/sysfs.c:188: error: unknown field
'name' specified in initializer

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/sysfs.c