Page MenuHomeFreeBSD

D61756.1795242021.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61756.1795242021.diff

diff --git a/sys/dev/xen/gntdev/gntdev.c b/sys/dev/xen/gntdev/gntdev.c
--- a/sys/dev/xen/gntdev/gntdev.c
+++ b/sys/dev/xen/gntdev/gntdev.c
@@ -105,7 +105,8 @@
static int
offset_cmp(struct file_offset_struct *f1, struct file_offset_struct *f2)
{
- return (f1->file_offset - f2->file_offset);
+ return ((f1->file_offset > f2->file_offset) -
+ (f1->file_offset < f2->file_offset));
}
RB_HEAD(file_offset_head, file_offset_struct);
@@ -240,7 +241,8 @@
static int
gref_cmp(struct gntdev_gref *g1, struct gntdev_gref *g2)
{
- return (g1->file_index - g2->file_index);
+ return ((g1->file_index > g2->file_index) -
+ (g1->file_index < g2->file_index));
}
RB_GENERATE_STATIC(gref_tree_head, gntdev_gref, gref_next.tree, gref_cmp);
@@ -485,7 +487,8 @@
static int
gmap_cmp(struct gntdev_gmap *g1, struct gntdev_gmap *g2)
{
- return (g1->file_index - g2->file_index);
+ return ((g1->file_index > g2->file_index) -
+ (g1->file_index < g2->file_index));
}
RB_GENERATE_STATIC(gmap_tree_head, gntdev_gmap, gmap_next.tree, gmap_cmp);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 6:20 AM (6 m, 17 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41870382
Default Alt Text
D61756.1795242021.diff (1 KB)

Event Timeline