hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/f2fs/f2fs.h
....@@ -1220,7 +1220,6 @@
12201220 #ifdef CONFIG_BLK_DEV_ZONED
12211221 unsigned int nr_blkz; /* Total number of zones */
12221222 unsigned long *blkz_seq; /* Bitmap indicating sequential zones */
1223
- block_t *zone_capacity_blocks; /* Array of zone capacity in blks */
12241223 #endif
12251224 };
12261225
....@@ -1288,6 +1287,7 @@
12881287 GC_IDLE_AT,
12891288 GC_URGENT_HIGH,
12901289 GC_URGENT_LOW,
1290
+ GC_URGENT_MID,
12911291 MAX_GC_MODE,
12921292 };
12931293
....@@ -1640,6 +1640,7 @@
16401640 unsigned int meta_ino_num; /* meta inode number*/
16411641 unsigned int log_blocks_per_seg; /* log2 blocks per segment */
16421642 unsigned int blocks_per_seg; /* blocks per segment */
1643
+ unsigned int unusable_blocks_per_sec; /* unusable blocks per section */
16431644 unsigned int segs_per_sec; /* segments per section */
16441645 unsigned int secs_per_zone; /* sections per zone */
16451646 unsigned int total_sections; /* total section count */
....@@ -2758,6 +2759,9 @@
27582759 if (is_inflight_io(sbi, type))
27592760 return false;
27602761
2762
+ if (sbi->gc_mode == GC_URGENT_MID)
2763
+ return true;
2764
+
27612765 if (sbi->gc_mode == GC_URGENT_LOW &&
27622766 (type == DISCARD_TIME || type == GC_TIME))
27632767 return true;
....@@ -3782,7 +3786,7 @@
37823786 int f2fs_gc(struct f2fs_sb_info *sbi, bool sync, bool background, bool force,
37833787 unsigned int segno);
37843788 void f2fs_build_gc_manager(struct f2fs_sb_info *sbi);
3785
-int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count);
3789
+int f2fs_resize_fs(struct file *filp, __u64 block_count);
37863790 int __init f2fs_create_garbage_collection_cache(void);
37873791 void f2fs_destroy_garbage_collection_cache(void);
37883792