diff options
author | Chao Yu <chao2.yu@samsung.com> | 2013-11-20 14:46:39 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-23 10:18:02 +0900 |
commit | 924b720b589f91311657216c97edbb3337449270 (patch) | |
tree | 4ff02959ff2ebe1007dc8da0cb77c83d0c05cc72 /fs/f2fs/super.c | |
parent | ce3b7d80edad7bc5ff347b9ff02f1484265b1f05 (diff) | |
download | op-kernel-dev-924b720b589f91311657216c97edbb3337449270.zip op-kernel-dev-924b720b589f91311657216c97edbb3337449270.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 8c677e9..9981b28 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); |