Page MenuHomeFreeBSD

D29840.diff
No OneTemporary

D29840.diff

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

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)

Event Timeline