aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-11-20 14:46:39 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 10:18:02 +0900
commit924b720b589f91311657216c97edbb3337449270 (patch)
tree4ff02959ff2ebe1007dc8da0cb77c83d0c05cc72 /fs/f2fs/super.c
parentf2fs: move the list_head initialization into the lock protection region (diff)
downloadlinux-dev-924b720b589f91311657216c97edbb3337449270.tar.xz
linux-dev-924b720b589f91311657216c97edbb3337449270.zip
f2fs: add a new function to support for merging contiguous read
For better read performance, we add a new function to support for merging contiguous read as the one for write. v1-->v2: o add declarations here as Gu Zheng suggested. o use new structure f2fs_bio_info introduced by Jaegeuk Kim. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Acked-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 8c677e958deb..9981b28744ed 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -878,6 +878,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
sbi->por_doing = false;
spin_lock_init(&sbi->stat_lock);
+ mutex_init(&sbi->read_io.io_mutex);
for (i = 0; i < NR_PAGE_TYPE; i++)
mutex_init(&sbi->write_io[i].io_mutex);