Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115405
b: refs/heads/master
c: 03254e6
h: refs/heads/master
i:
  115403: 50e41ba
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2008
1 parent 960f21b commit 0293397
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: 19d771f3caccaf66ce2fb539319222139e5b4e88
refs/heads/master: 03254e65a60d3113164672dbbadc023c4a56ecd1
13 changes: 4 additions & 9 deletions trunk/fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,10 +933,10 @@ static int nfs_inode_attrs_need_update(const struct inode *inode, const struct n
{
const struct nfs_inode *nfsi = NFS_I(inode);

return nfs_ctime_need_update(inode, fattr) ||
nfs_size_need_update(inode, fattr) ||
time_after(fattr->time_start, nfsi->last_updated) ||
time_after(nfsi->last_updated, jiffies);
return time_after(fattr->time_start, nfsi->last_updated) ||
nfs_ctime_need_update(inode, fattr) ||
nfs_size_need_update(inode, fattr) ||
time_after(nfsi->last_updated, jiffies);
}

static int nfs_refresh_inode_locked(struct inode *inode, struct nfs_fattr *fattr)
Expand Down Expand Up @@ -1167,11 +1167,6 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
nfsi->attrtimeo = NFS_MAXATTRTIMEO(inode);
nfsi->attrtimeo_timestamp = now;
}
/*
* Avoid jiffy wraparound issues with nfsi->last_updated
*/
if (!time_in_range(nfsi->last_updated, nfsi->read_cache_jiffies, now))
nfsi->last_updated = nfsi->read_cache_jiffies;
}
invalid &= ~NFS_INO_INVALID_ATTR;
/* Don't invalidate the data if we were to blame */
Expand Down

0 comments on commit 0293397

Please sign in to comment.