backing-dev: Handle class_create() failure
authorAnton Blanchard <anton@samba.org>
Fri, 2 Apr 2010 07:46:55 +0000 (09:46 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 2 Apr 2010 07:46:55 +0000 (09:46 +0200)
commit144214537370b4f133a735446ebe86e90cfb2501
tree840f26c5a83d4730c28b5c46ec000a76e89adcc9
parenta506aedc51093544ff0f9610af6066d18cb6abbe
backing-dev: Handle class_create() failure

I hit this when we had a bug in IDR for a few days. Basically sysfs would
fail to create new inodes since it uses an IDR and therefore class_create would
fail.

While we are unlikely to see this fail we may as well handle it instead of
oopsing.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
mm/backing-dev.c