Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44466
b: refs/heads/master
c: 7e913c5
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh authored and Linus Torvalds committed Dec 13, 2006
1 parent d5d05fd commit b61a17a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47ae32d6a54955a041cdc30b06d0bb16e75f68d5
refs/heads/master: 7e913c53609d5e8374f55d6f29c0bcd6650a2362
8 changes: 8 additions & 0 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ int ocfs2_should_update_atime(struct inode *inode,
((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)))
return 0;

if (vfsmnt->mnt_flags & MNT_RELATIME) {
if ((timespec_compare(&inode->i_atime, &inode->i_mtime) <= 0) ||
(timespec_compare(&inode->i_atime, &inode->i_ctime) <= 0))
return 1;

return 0;
}

now = CURRENT_TIME;
if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum))
return 0;
Expand Down

0 comments on commit b61a17a

Please sign in to comment.