+ /* Was this file in the old stat cache, and is the information unchanged?
+ * If so, mark the information "validated", which means we are confident
+ * that we can use it to accurately detect changes. (Stat information may
+ * not be updated if, for example, there are two writes within a single
+ * second and we happen to make the first stat call between them. However,
+ * if two stat calls separated in time agree, then we will trust the
+ * values.) */
+ bool validated = false;
+ if (!end_of_cache && path == old_name) {
+ if (stat_buf->st_mtime == old_mtime
+ && stat_buf->st_ctime == old_ctime
+ && (long long)stat_buf->st_ino == old_inode
+ && old_checksum == checksum)
+ validated = true;
+ }
+