Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103018712
D25282.id73142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25282.id73142.diff
View Options
Index: sys/vm/vm_map.c
===================================================================
--- sys/vm/vm_map.c
+++ sys/vm/vm_map.c
@@ -2428,19 +2428,6 @@
return (entry);
}
-/*
- * vm_map_clip_end: [ internal use only ]
- *
- * Asserts that the given entry ends at or before
- * the specified address; if necessary,
- * it splits the entry into two.
- */
-#define vm_map_clip_end(map, entry, endaddr) \
-{ \
- if ((endaddr) < (entry->end)) \
- _vm_map_clip_end((map), (entry), (endaddr)); \
-}
-
/*
* This routine is called only when it is known that
* the entry must be split.
@@ -2464,6 +2451,20 @@
vm_map_entry_link(map, new_entry);
}
+/*
+ * vm_map_clip_end: [ internal use only ]
+ *
+ * Asserts that the given entry ends at or before
+ * the specified address; if necessary,
+ * it splits the entry into two.
+ */
+static inline void
+vm_map_clip_end(vm_map_t map, vm_map_entry_t entry, vm_offset_t endaddr)
+{
+ if (endaddr < entry->end)
+ _vm_map_clip_end(map, entry, endaddr);
+}
+
/*
* vm_map_submap: [ kernel use only ]
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:41 PM (15 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14747863
Default Alt Text
D25282.id73142.diff (1 KB)
Attached To
Mode
D25282: vm: Convert vm_map_clip_end from a macro to a regular inline function
Attached
Detach File
Event Timeline
Log In to Comment