Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165863
b: refs/heads/master
c: b12536c
h: refs/heads/master
i:
  165861: 1ea68dc
  165859: c30da4d
  165855: 9d78fc8
v: v3
  • Loading branch information
Andi Kleen authored and Al Viro committed Sep 24, 2009
1 parent 3901df5 commit 52a9e19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 22fe404218156328a27e66349b1175cd0baa4990
refs/heads/master: b12536c27043f1c21195e587eb59950428326e22
20 changes: 10 additions & 10 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,31 +1416,31 @@ void touch_atime(struct vfsmount *mnt, struct dentry *dentry)
struct inode *inode = dentry->d_inode;
struct timespec now;

if (mnt_want_write(mnt))
return;
if (inode->i_flags & S_NOATIME)
goto out;
return;
if (IS_NOATIME(inode))
goto out;
return;
if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))
goto out;
return;

if (mnt->mnt_flags & MNT_NOATIME)
goto out;
return;
if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))
goto out;
return;

now = current_fs_time(inode->i_sb);

if (!relatime_need_update(mnt, inode, now))
goto out;
return;

if (timespec_equal(&inode->i_atime, &now))
goto out;
return;

if (mnt_want_write(mnt))
return;

inode->i_atime = now;
mark_inode_dirty_sync(inode);
out:
mnt_drop_write(mnt);
}
EXPORT_SYMBOL(touch_atime);
Expand Down

0 comments on commit 52a9e19

Please sign in to comment.