diff options
author | Tejun Heo <htejun@gmail.com> | 2005-09-07 00:17:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-08 01:57:31 +0200 |
commit | 5acd57936c3224fd86e838201e528e0169373e9b (patch) | |
tree | 17ffd8eb4222ac954d9f82c7450f52dfae73fe71 /fs/inode.c | |
parent | [PATCH] largefile support for accounting (diff) | |
download | linux-5acd57936c3224fd86e838201e528e0169373e9b.tar.xz linux-5acd57936c3224fd86e838201e528e0169373e9b.zip |
[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.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) 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; } } |