Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46c9e141 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: use correct flag in f2fs_map_blocks()



We introduce F2FS_GET_BLOCK_READ in commit e2b4e2bc ("f2fs: fix
incorrect mapping for bmap"), but forget to use this flag in the right
place, fix it.

Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent f9811703
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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: