diff options
-rw-r--r-- | fs/gfs2/ops_fstype.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 60ede2a0f43f..0262c190b6f9 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -916,16 +916,16 @@ static int init_threads(struct gfs2_sbd *sdp, int undo) | |||
916 | goto fail_quotad; | 916 | goto fail_quotad; |
917 | 917 | ||
918 | p = kthread_run(gfs2_logd, sdp, "gfs2_logd"); | 918 | p = kthread_run(gfs2_logd, sdp, "gfs2_logd"); |
919 | error = IS_ERR(p); | 919 | if (IS_ERR(p)) { |
920 | if (error) { | 920 | error = PTR_ERR(p); |
921 | fs_err(sdp, "can't start logd thread: %d\n", error); | 921 | fs_err(sdp, "can't start logd thread: %d\n", error); |
922 | return error; | 922 | return error; |
923 | } | 923 | } |
924 | sdp->sd_logd_process = p; | 924 | sdp->sd_logd_process = p; |
925 | 925 | ||
926 | p = kthread_run(gfs2_quotad, sdp, "gfs2_quotad"); | 926 | p = kthread_run(gfs2_quotad, sdp, "gfs2_quotad"); |
927 | error = IS_ERR(p); | 927 | if (IS_ERR(p)) { |
928 | if (error) { | 928 | error = PTR_ERR(p); |
929 | fs_err(sdp, "can't start quotad thread: %d\n", error); | 929 | fs_err(sdp, "can't start quotad thread: %d\n", error); |
930 | goto fail; | 930 | goto fail; |
931 | } | 931 | } |