diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/inode.c b/fs/inode.c index bf21dc6d0dbd..6cacdab25e0a 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -1160,11 +1160,9 @@ void touch_atime(struct vfsmount *mnt, struct dentry *dentry) | |||
1160 | struct inode *inode = dentry->d_inode; | 1160 | struct inode *inode = dentry->d_inode; |
1161 | struct timespec now; | 1161 | struct timespec now; |
1162 | 1162 | ||
1163 | if (IS_RDONLY(inode)) | ||
1164 | return; | ||
1165 | if (inode->i_flags & S_NOATIME) | 1163 | if (inode->i_flags & S_NOATIME) |
1166 | return; | 1164 | return; |
1167 | if (inode->i_sb->s_flags & MS_NOATIME) | 1165 | if (IS_NOATIME(inode)) |
1168 | return; | 1166 | return; |
1169 | if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) | 1167 | if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) |
1170 | return; | 1168 | return; |