lkml.org 
[lkml]   [2006]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: + ocfs2-relative-atime-support-tweaks.patch added to -mm tree
On Tue, 5 Dec 2006 22:28:09 -0800
Mark Fasheh <mark.fasheh@oracle.com> wrote:

> > 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))
> > + if ((timespec_compare(&inode->i_atime, &inode->i_mtime) <= 0) ||
> > + (timespec_compare(&inode->i_atime, &inode->i_ctime) <= 0))
> > return 1;
> Hmm, should we fix up touch_atime() to use "<=" as well? Maybe I didn't read
> it correctly...

The logic I have there is the same (I hope)...

+ if (timespec_compare(&inode->i_mtime,
+ &inode->i_atime) < 0 &&
+ timespec_compare(&inode->i_ctime,
+ &inode->i_atime) < 0)
+ return;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-12-06 07:47    [W:0.035 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site