f2fs: avoid stale fi->gdirty_list pointer
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 13 Oct 2017 02:12:53 +0000 (19:12 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:22:00 +0000 (17:22 -0800)
commit2f18884d3c65b1fe4c12c783754e56d67dc750ea
treeb54155983652534dd5346579cb1264658a34fb31
parent0dbf4fd41748972447f03698456a02668a566b65
f2fs: avoid stale fi->gdirty_list pointer

When doing fault injection test, f2fs_evict_inode() didn't remove gdirty_list
which incurs a kernel panic due to wrong pointer access.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c