Btrfs: check return value for kthread_run() correctly
authorQinghuang Feng <qhfeng.kernel@gmail.com>
Wed, 21 Jan 2009 15:49:16 +0000 (10:49 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 21 Jan 2009 15:49:16 +0000 (10:49 -0500)
commit57506d50ed6db7b0e7ddc9845e86e81f140983d5
treea3723a312440c883cde794f78b7cfc5e1dadab77
parent119e10cf1b2f6a6cafff74f32373d631489f54c2
Btrfs: check return value for kthread_run() correctly

kthread_run() returns the kthread or ERR_PTR(-ENOMEM), not NULL.

Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c