diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-09-18 16:54:16 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-09 16:20:52 -0700 |
commit | 46c9e1413f3c4ecbbe775e545063e88feb1f9871 (patch) | |
tree | 80d60c74c44b41f6d0b55fc7340d150120cddee5 /fs/f2fs | |
parent | f9811703fefbdb22abf723ec61368777cdad8508 (diff) | |
download | op-kernel-dev-46c9e1413f3c4ecbbe775e545063e88feb1f9871.zip op-kernel-dev-46c9e1413f3c4ecbbe775e545063e88feb1f9871.tar.gz |
f2fs: use correct flag in f2fs_map_blocks()
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index d265401..bc04e92 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -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: |