summaryrefslogtreecommitdiff
path: root/fs/inode.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2005-09-07 02:17:36 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-08 03:57:31 +0400
commit5acd57936c3224fd86e838201e528e0169373e9b (patch)
tree17ffd8eb4222ac954d9f82c7450f52dfae73fe71 /fs/inode.c
parent6c9c0b52b8c6b68b05bb06efd7079a8fc5e9ba60 (diff)
downloadlinux-5acd57936c3224fd86e838201e528e0169373e9b.tar.xz
[PATCH] fs: remove redundant timespec_equal test in update_atime()
In update_atime(), timespec_equal() test is done twice in succession and the second is always false. This patch removes the second test. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/inode.c b/fs/inode.c
index e57f1724db3e..71df1b1e8f75 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1195,9 +1195,6 @@ void update_atime(struct inode *inode)
if (!timespec_equal(&inode->i_atime, &now)) {
inode->i_atime = now;
mark_inode_dirty_sync(inode);
- } else {
- if (!timespec_equal(&inode->i_atime, &now))
- inode->i_atime = now;
}
}