f2fs: check if inmem_pages list is empty correctly
authorSheng Yong <shengyong1@huawei.com>
Tue, 17 Apr 2018 09:12:27 +0000 (17:12 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:46 +0000 (11:31 -0700)
commitd0891e84e1e61938aa8a3b75cb10a34769de022a
treea2e8521cb515342471228f2b0cd7deb234579c0a
parent27319ba4044c0c67d62ae39e53c0118c89f0a029
f2fs: check if inmem_pages list is empty correctly

`cur' will never be NULL, we should check inmem_pages list instead.

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