diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-02-02 15:52:42 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-02-11 23:15:02 +0100 |
commit | 25718423ea6f7118f9c173adff0fac52414571b8 (patch) | |
tree | 8e1604e6c45a8c0e46172fd51122acd059573e7a /fs/f2fs/segment.h | |
parent | f2fs: name gc task as per the block device (diff) | |
download | linux-25718423ea6f7118f9c173adff0fac52414571b8.tar.xz linux-25718423ea6f7118f9c173adff0fac52414571b8.zip |
f2fs: mark gc_thread as NULL when thread creation is failed
When gc thread creation is failed, mark gc_thread as NULL to avoid
crash while trying to stop invalid thread in stop_gc_thread->kthread_stop.
Instead make it return from:
if (!gc_th)
return;
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions