Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1227677 > unrolled thread

[PATCH 2/3] f2fs: use correct flag in f2fs_map_blocks()

Started byChao Yu <chao2.yu@samsung.com>
First post2015-09-18 11:00 +0200
Last post2015-09-18 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 2/3] f2fs: use correct flag in f2fs_map_blocks() Chao Yu <chao2.yu@samsung.com> - 2015-09-18 11:00 +0200

#1227677 — [PATCH 2/3] f2fs: use correct flag in f2fs_map_blocks()

FromChao Yu <chao2.yu@samsung.com>
Date2015-09-18 11:00 +0200
Subject[PATCH 2/3] f2fs: use correct flag in f2fs_map_blocks()
Message-ID<q9ZGs-67w-43@gated-at.bofh.it>
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>
---
 fs/f2fs/data.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 78b3161..96fc613 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -908,7 +908,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:
-- 
2.5.2


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web