diff options
author | Tejun Heo <htejun@gmail.com> | 2005-09-06 18:17:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:31 -0400 |
commit | 5acd57936c3224fd86e838201e528e0169373e9b (patch) | |
tree | 17ffd8eb4222ac954d9f82c7450f52dfae73fe71 /fs | |
parent | 6c9c0b52b8c6b68b05bb06efd7079a8fc5e9ba60 (diff) |
[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')
-rw-r--r-- | fs/inode.c | 3 |
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) | |||
1195 | if (!timespec_equal(&inode->i_atime, &now)) { | 1195 | if (!timespec_equal(&inode->i_atime, &now)) { |
1196 | inode->i_atime = now; | 1196 | inode->i_atime = now; |
1197 | mark_inode_dirty_sync(inode); | 1197 | mark_inode_dirty_sync(inode); |
1198 | } else { | ||
1199 | if (!timespec_equal(&inode->i_atime, &now)) | ||
1200 | inode->i_atime = now; | ||
1201 | } | 1198 | } |
1202 | } | 1199 | } |
1203 | 1200 | ||