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, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commitbd5f1c23a7d0223c66ffc670bec16d20732e80f0
tree55d0a5b85044e450c6966c79e559559f78c8b0ed
parent2e405acc866a9f632c0267f30730e9dde3df93d5
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