Skip to content
Snippets Groups Projects
Commit e1d53a63 authored by Nikita Danilov's avatar Nikita Danilov
Browse files

landing fix for bug 12227.

parent 78a4455c
No related branches found
No related tags found
No related merge requests found
2007-04-23 Cluster File Systems, Inc. <info@clusterfs.com>
2006-06-22 Cluster File Systems, Inc. <info@clusterfs.com>
* version 1.4.11 / 1.6.1
* Support for networks:
socklnd - kernels up to 2.6.16
......@@ -13,6 +13,15 @@
ptllnd - Portals 3.3 / UNICOS/lc 1.5.x, 2.0.x
* bug fixes
Severity : minor
Frequency : rare
Bugzilla : 12227
Description: cfs_duration_{u,n}sec() wrongly calculate nanosecond part of
struct timeval.
Details : do_div() macro is used incorrectly.
2007-04-23 Cluster File Systems, Inc. <info@clusterfs.com>
Severity : normal
Bugzilla : 11680
Description: make panic on lbug configurable
......
......@@ -238,7 +238,8 @@ static inline void cfs_duration_usec(cfs_duration_t d, struct timeval *s)
s->tv_sec = d / HZ;
t = (d - (cfs_duration_t)s->tv_sec * HZ) * ONE_MILLION;
s->tv_usec = do_div (t, HZ);
do_div(t, HZ);
s->tv_usec = t;
#else
s->tv_sec = d / HZ;
s->tv_usec = ((d - (cfs_duration_t)s->tv_sec * HZ) * ONE_MILLION) / HZ;
......@@ -252,7 +253,8 @@ static inline void cfs_duration_nsec(cfs_duration_t d, struct timespec *s)
s->tv_sec = d / HZ;
t = (d - s->tv_sec * HZ) * ONE_BILLION;
s->tv_nsec = do_div (t, HZ);
do_div(t, HZ);
s->tv_nsec = t;
#else
s->tv_sec = d / HZ;
s->tv_nsec = ((d - s->tv_sec * HZ) * ONE_BILLION) / HZ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment