Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111059585
D28224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
724 B
Referenced Files
None
Subscribers
None
D28224.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28224: linuxkpi: Fix the shrinker scan target
Attached
Detach File
Event Timeline
Log In to Comment