diff options
author | Daeho Jeong <daehojeong@google.com> | 2023-05-03 22:53:49 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-05-24 03:37:38 +0200 |
commit | e067dc3c6b9c419bac43c6a0be2d85f44681f863 (patch) | |
tree | b0774a4fe42f7cbd2b5e7e83c351e0ae90667fb6 /fs/f2fs/f2fs.h | |
parent | f2fs: remove some dead code (diff) | |
download | linux-e067dc3c6b9c419bac43c6a0be2d85f44681f863.tar.xz linux-e067dc3c6b9c419bac43c6a0be2d85f44681f863.zip |
f2fs: maintain six open zones for zoned devices
To keep six open zone constraints, make them not to be open over six
open zones.
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | fs/f2fs/f2fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7afc9aef127a..0f05c1dd633f 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1218,6 +1218,11 @@ 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. */ +#ifdef CONFIG_BLK_DEV_ZONED + struct completion zone_wait; /* condition value for the previous open zone to close */ + struct bio *zone_pending_bio; /* pending bio for the previous zone */ + void *bi_private; /* previous bi_private for pending bio */ +#endif struct f2fs_rwsem io_rwsem; /* blocking op for bio */ spinlock_t io_lock; /* serialize DATA/NODE IOs */ struct list_head io_list; /* track fios */ |