Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32971
b: refs/heads/master
c: 685d16d
h: refs/heads/master
i:
  32969: 88b7a81
  32967: 1a26d1a
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Jul 31, 2006
1 parent 74da5ef commit f734942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25d7dfdaf3404bb31b8f55283fd2c456cb7b4001
refs/heads/master: 685d16ddb07b74537fb18972784e6214840fdd20
7 changes: 5 additions & 2 deletions trunk/fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
*/
static unsigned long time_to_jiffies(unsigned long sec, unsigned long nsec)
{
struct timespec ts = {sec, nsec};
return jiffies + timespec_to_jiffies(&ts);
if (sec || nsec) {
struct timespec ts = {sec, nsec};
return jiffies + timespec_to_jiffies(&ts);
} else
return jiffies - 1;
}

/*
Expand Down

0 comments on commit f734942

Please sign in to comment.