mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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>
This commit is contained in:
parent
27319ba404
commit
d0891e84e1
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ void drop_inmem_page(struct inode *inode, struct page *page)
|
|||
break;
|
||||
}
|
||||
|
||||
f2fs_bug_on(sbi, !cur || cur->page != page);
|
||||
f2fs_bug_on(sbi, list_empty(head) || cur->page != page);
|
||||
list_del(&cur->list);
|
||||
mutex_unlock(&fi->inmem_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue