Page MenuHomeFreeBSD

D28224.diff
No OneTemporary

D28224.diff

diff --git a/sys/compat/linuxkpi/common/src/linux_shrinker.c b/sys/compat/linuxkpi/common/src/linux_shrinker.c
--- a/sys/compat/linuxkpi/common/src/linux_shrinker.c
+++ b/sys/compat/linuxkpi/common/src/linux_shrinker.c
@@ -71,7 +71,7 @@
struct shrink_control sc;
unsigned long can_free;
unsigned long batch;
- unsigned long freeed = 0;
+ unsigned long scanned = 0;
unsigned long ret;
can_free = s->count_objects(s, &sc);
@@ -79,12 +79,12 @@
return;
batch = s->batch ? s->batch : SHRINKER_BATCH;
- while (freeed <= can_free) {
+ while (scanned <= can_free) {
sc.nr_to_scan = batch;
ret = s->scan_objects(s, &sc);
if (ret == SHRINK_STOP)
break;
- freeed += ret;
+ scanned += batch;
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 27, 8:43 PM (20 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16873993
Default Alt Text
D28224.diff (724 B)

Event Timeline