hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/fs/f2fs/sysfs.c
....@@ -466,6 +466,13 @@
466466 }
467467 } else if (t == 2) {
468468 sbi->gc_mode = GC_URGENT_LOW;
469
+ } else if (t == 3) {
470
+ sbi->gc_mode = GC_URGENT_MID;
471
+ if (sbi->gc_thread) {
472
+ sbi->gc_thread->gc_wake = 1;
473
+ wake_up_interruptible_all(
474
+ &sbi->gc_thread->gc_wait_queue_head);
475
+ }
469476 } else {
470477 return -EINVAL;
471478 }
....@@ -496,9 +503,9 @@
496503 if (!strcmp(a->attr.name, "iostat_period_ms")) {
497504 if (t < MIN_IOSTAT_PERIOD_MS || t > MAX_IOSTAT_PERIOD_MS)
498505 return -EINVAL;
499
- spin_lock(&sbi->iostat_lock);
506
+ spin_lock_irq(&sbi->iostat_lock);
500507 sbi->iostat_period_ms = (unsigned int)t;
501
- spin_unlock(&sbi->iostat_lock);
508
+ spin_unlock_irq(&sbi->iostat_lock);
502509 return count;
503510 }
504511