Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 297251 Details for
Bug 436132
Reduce NFS cache invalidations due to writes from same client
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch 2 -- add timespec_before helper inline function
0002-BZ-436132-time-add-timespec_before-helper-inline-f.patch (text/plain), 1.10 KB, created by
Jeff Layton
on 2008-03-07 21:02:20 UTC
(
hide
)
Description:
patch 2 -- add timespec_before helper inline function
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2008-03-07 21:02:20 UTC
Size:
1.10 KB
patch
obsolete
>From 7e2aa4c0b602aeee67603abf5b3747b08d242aa0 Mon Sep 17 00:00:00 2001 >From: Jeff Layton <jlayton@redhat.com> >Date: Fri, 7 Mar 2008 15:58:29 -0500 >Subject: [PATCH] BZ#436132: time: add timespec_before helper inline function > >--- > include/linux/time.h | 13 ++++++++++++- > 1 files changed, 12 insertions(+), 1 deletions(-) > >diff --git a/include/linux/time.h b/include/linux/time.h >index 83c2afa..df0d3c0 100644 >--- a/include/linux/time.h >+++ b/include/linux/time.h >@@ -299,7 +299,18 @@ jiffies_to_timeval(const unsigned long jiffies, struct timeval *value) > static __inline__ int timespec_equal(struct timespec *a, struct timespec *b) > { > return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); >-} >+} >+ >+/* return true if timespec a is before timespec b */ >+static __inline__ int >+timespec_before(struct timespec *a, struct timespec *b) >+{ >+ if (a->tv_sec < b->tv_sec) >+ return 1; >+ if (a->tv_sec == b->tv_sec && a->tv_nsec < b->tv_nsec) >+ return 1; >+ return 0; >+} > > /* Converts Gregorian date to seconds since 1970-01-01 00:00:00. > * Assumes input in normal date format, i.e. 1980-12-31 23:59:59 >-- >1.5.3.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436132
:
297190
|
297191
|
297250
|
297251
|
297252
|
309488
|
309489
|
309490
|
309620