diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-05-19 23:37:00 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-23 21:07:23 -0700 |
commit | e41e6d75e5010741f01f8aa4f77a5e8a1786652d (patch) | |
tree | ad731ba24e0a1742da09e727a5b4afe85ddec783 /fs/f2fs/segment.c | |
parent | 963932a93ceb6bdb0d45572056d8daebf2948cd0 (diff) | |
download | linux-e41e6d75e5010741f01f8aa4f77a5e8a1786652d.tar.bz2 |
f2fs: split wio_mutex
Split wio_mutex to adjust different temperature bio cache.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 7ac3a0c84bfd..63850e023c10 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -2154,7 +2154,7 @@ static void do_write_page(struct f2fs_summary *sum, struct f2fs_io_info *fio) int err; if (fio->type == NODE || fio->type == DATA) - mutex_lock(&fio->sbi->wio_mutex[fio->type]); + mutex_lock(&fio->sbi->wio_mutex[fio->type][fio->temp]); reallocate: allocate_data_block(fio->sbi, fio->page, fio->old_blkaddr, &fio->new_blkaddr, sum, type); @@ -2167,7 +2167,7 @@ reallocate: } if (fio->type == NODE || fio->type == DATA) - mutex_unlock(&fio->sbi->wio_mutex[fio->type]); + mutex_unlock(&fio->sbi->wio_mutex[fio->type][fio->temp]); } void write_meta_page(struct f2fs_sb_info *sbi, struct page *page) |