Commit 9d559a2
add some logs for updating inode atime
Summary:
inode atime is not accurate on macOS. NFS GC use atime for invalidation and only invalidate inodes if its atime is less than a cutoff.
However, I found some conditions that inodes get invalidates which they are recently accessed. It means that we don't update atime correctly on NFS.
I add some logs to the InodeBase and GC to find out when we skip updating atime.
Reviewed By: taidaii
Differential Revision: D75720812
fbshipit-source-id: 45d372b48ad01257e4d5b84de67655f74addf81b1 parent 7d32bf7 commit 9d559a2
2 files changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| |||
357 | 371 | | |
358 | 372 | | |
359 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
360 | 379 | | |
361 | 380 | | |
362 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3973 | 3973 | | |
3974 | 3974 | | |
3975 | 3975 | | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
3976 | 3984 | | |
3977 | 3985 | | |
3978 | 3986 | | |
| |||
4449 | 4457 | | |
4450 | 4458 | | |
4451 | 4459 | | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
4452 | 4469 | | |
4453 | 4470 | | |
4454 | 4471 | | |
| |||
0 commit comments