From 754e5d49b107539e1ddf6e11dd3f2e5c0be21d2d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Oct 2006 22:33:47 +0200 Subject: inotail.c: Make pretty_name() an inline --- inotail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inotail.c') diff --git a/inotail.c b/inotail.c index cd956d3..59e9b47 100644 --- a/inotail.c +++ b/inotail.c @@ -79,7 +79,7 @@ static void setup_file(struct file_struct *f) f->i_watch = -1; } -static char *pretty_name(char *filename) +static inline char *pretty_name(char *filename) { return (strncmp(filename, "-", 1) == 0) ? "standard input" : filename; } -- cgit v1.2.3-54-g00ecf ository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinfei Huang <mnghuan@gmail.com>2016-05-27 14:17:10 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-27 15:12:14 +0200
commit749d088b8e7f4b9826ede02b9a043e417fa84aa1 (patch)
tree03a21cc3d1eb86ecc2e0a45c889e63a1cb366a3f /Documentation
parent4c2e07c6a29e0129e975727b9f57eede813eea85 (diff)
pvclock: Add CPU barriers to get correct version value
Protocol for the "version" fields is: hypervisor raises it (making it uneven) before it starts updating the fields and raises it again (making it even) when it is done. Thus the guest can make sure the time values it got are consistent by checking the version before and after reading them. Add CPU barries after getting version value just like what function vread_pvclock does, because all of callees in this function is inline. Fixes: 502dfeff239e8313bfbe906ca0a1a6827ac8481b Cc: stable@vger.kernel.org Signed-off-by: Minfei Huang <mnghuan@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation')