- if (lfsck->li_master)
- rc = cfs_create_thread(lfsck_master_engine, lfsck, 0);
- if (rc < 0)
- CERROR("%s: cannot start LFSCK thread, rc = %d\n",
+ rc = PTR_ERR(kthread_run(lfsck_master_engine, lfsck, "lfsck"));
+ if (IS_ERR_VALUE(rc)) {
+ CERROR("%s: cannot start LFSCK thread, rc = %ld\n",