diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-03-22 14:57:23 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-01 18:53:41 +0900 |
commit | df0f8dc0e154de13e3a54846f384b674dd557c85 (patch) | |
tree | 9465da562d6136bd8a49d55b834f3713af880c5f /fs/f2fs/f2fs.h | |
parent | 3bb5e2c8fe2296ddd9d864dcfb5ee1b77135f3ec (diff) | |
download | blackbird-op-linux-df0f8dc0e154de13e3a54846f384b674dd557c85.tar.gz blackbird-op-linux-df0f8dc0e154de13e3a54846f384b674dd557c85.zip |
f2fs: avoid unnecessary bio submit when wait page writeback
This patch introduce is_merged_page() to check whether current page is merged
in f2fs bio cache. When page is not in cache, we can avoid submitting bio cache,
resulting in having more chance to merge pages.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index f83433e4b043..1e3d869b60cd 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -394,7 +394,7 @@ struct f2fs_bio_info { struct bio *bio; /* bios to merge */ sector_t last_block_in_bio; /* last block number */ struct f2fs_io_info fio; /* store buffered io info. */ - struct mutex io_mutex; /* mutex for bio */ + struct rw_semaphore io_rwsem; /* blocking op for bio */ }; struct f2fs_sb_info { |