aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2016-06-16 17:03:23 -0700
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2016-07-06 10:44:10 -0700
commitac6f199984a667eb017897b8528f7687eac8fa45 (patch)
tree74122f3fcccf9a923308ffd86680699b07ea935d /fs/f2fs/data.c
parentf2fs: avoid writing node/metapages during writes (diff)
downloadlinux-ac6f199984a667eb017897b8528f7687eac8fa45.tar.gz
linux-ac6f199984a667eb017897b8528f7687eac8fa45.tar.bz2
linux-ac6f199984a667eb017897b8528f7687eac8fa45.zip
f2fs: avoid latency-critical readahead of node pages
The f2fs_map_blocks is very related to the performance, so let's avoid any latency to read ahead node pages. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 08325280d03c..ba4963f51bee 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -652,7 +652,7 @@ int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map,
unsigned int maxblocks = map->m_len;
struct dnode_of_data dn;
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
- int mode = create ? ALLOC_NODE : LOOKUP_NODE_RA;
+ int mode = create ? ALLOC_NODE : LOOKUP_NODE;
pgoff_t pgofs, end_offset, end;
int err = 0, ofs = 1;
unsigned int ofs_in_node, last_ofs_in_node;