f2fs: fix bad prefetchw of NULL page
authorKinglong Mee <kinglongmee@gmail.com>
Mon, 13 Mar 2017 08:35:13 +0000 (16:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:31 +0000 (22:34 -0400)
commita83d50bc16c4f5d0a359790015b5b32f3f0e52db
tree47ea751a5e2adbe77678f677bd159dd7df53dd23
parentbd4667cb4b77f02a16dd14443ba66884d755c7e6
f2fs: fix bad prefetchw of NULL page

For f2fs_read_data_pages, the f2fs_mpage_readpages gets "page == NULL",
so that, the prefetchw(&page->flags) is operated on NULL.

Fixes: f1e8866016 ("f2fs: expose f2fs_mpage_readpages")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c