mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
f2fs: use correct flag in f2fs_map_blocks()
We introduce F2FS_GET_BLOCK_READ in commit e2b4e2bc88 ("f2fs: fix
incorrect mapping for bmap"), but forget to use this flag in the right
place, fix it.
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
f9811703fe
commit
46c9e1413f
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue