f2fs: fix to reset i_gc_failures correctly
authorChao Yu <yuchao0@huawei.com>
Sat, 28 Jul 2018 10:37:58 +0000 (18:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Aug 2018 23:39:26 +0000 (16:39 -0700)
commit3093336481565248ce47557445977eeac21bfca8
tree9c80973a3a0bc45bc441ac37ddc91ac9cd3aaabe
parentd3f07c049dab1a3f1740f476afd3d5e5b738c21c
f2fs: fix to reset i_gc_failures correctly

Let's reset i_gc_failures to zero when we unset pinned state for file.

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