Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107858530
D29840.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
498 B
Referenced Files
None
Subscribers
None
D29840.diff
View Options
diff --git a/sys/dev/xen/grant_table/grant_table.c b/sys/dev/xen/grant_table/grant_table.c
--- a/sys/dev/xen/grant_table/grant_table.c
+++ b/sys/dev/xen/grant_table/grant_table.c
@@ -471,11 +471,8 @@
static inline
unsigned int max_nr_grant_frames(void)
{
- unsigned int xen_max = __max_nr_grant_frames();
- if (xen_max > boot_max_nr_grant_frames)
- return (boot_max_nr_grant_frames);
- return (xen_max);
+ return (min(__max_nr_grant_frames(), boot_max_nr_grant_frames));
}
#ifdef notyet
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 6:53 PM (15 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15955383
Default Alt Text
D29840.diff (498 B)
Attached To
Mode
D29840: xen/grant_table: cleanup max_nr_grant_frames()
Attached
Detach File
Event Timeline
Log In to Comment