diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-18 01:23:36 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-18 22:57:25 +0200 |
commit | f573018491fd823e909d587cfe16758f3dd9e6d6 (patch) | |
tree | d104b13e1c54d116cf83b532b221e3906ac6c0c1 /fs/f2fs/checkpoint.c | |
parent | f2fs: manipulate dirty file inodes when DATA_FLUSH is set (diff) | |
download | linux-f573018491fd823e909d587cfe16758f3dd9e6d6.tar.xz linux-f573018491fd823e909d587cfe16758f3dd9e6d6.zip |
f2fs: use bio count instead of F2FS_WRITEBACK page count
This can reduce page counting overhead.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index d04113b9ac18..447e2a986560 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -914,7 +914,7 @@ static void wait_on_all_pages_writeback(struct f2fs_sb_info *sbi) for (;;) { prepare_to_wait(&sbi->cp_wait, &wait, TASK_UNINTERRUPTIBLE); - if (!get_pages(sbi, F2FS_WRITEBACK)) + if (!atomic_read(&sbi->nr_wb_bios)) break; io_schedule_timeout(5*HZ); |