f2fs: use correct flag in f2fs_map_blocks()
authorChao Yu <chao2.yu@samsung.com>
Fri, 18 Sep 2015 08:54:16 +0000 (16:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Oct 2015 23:20:52 +0000 (16:20 -0700)
We introduce F2FS_GET_BLOCK_READ in commit e2b4e2bc8865 ("f2fs: fix
incorrect mapping for bmap"), but forget to use this flag in the right
place, fix it.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index d265401b5326f1f8b974022f9750ce4ee1393e8c..bc04e9201fd60f9cd556eb5d2cabed724b1168dc 100644 (file)
@@ -920,7 +920,8 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
                        map.m_lblk = block_in_file;
                        map.m_len = last_block - block_in_file;
 
-                       if (f2fs_map_blocks(inode, &map, 0, false))
+                       if (f2fs_map_blocks(inode, &map, 0,
+                                                       F2FS_GET_BLOCK_READ))
                                goto set_error_page;
                }
 got_it: