Chengen Du 21fd9e8700 NFS: Correct timing for assigning access cache timestamp
When the user's login time is newer than the cache's timestamp,
the original entry in the RB-tree will be replaced by a new entry.
Currently, the timestamp is only set if the entry is not found in
the RB-tree, which can cause the timestamp to be undefined when
the entry exists. This may result in a significant increase in
ACCESS operations if the timestamp is set to zero.

Signed-off-by: Chengen Du <chengen.du@canonical.com>
Fixes: 0eb43812c027 ("NFS: Clear the file access cache upon login”)
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2023-03-14 15:19:44 -04:00
..
2023-02-22 14:21:40 -08:00
2023-02-22 14:47:20 -08:00
2022-05-09 23:12:33 -04:00
2023-02-20 11:53:11 -08:00
2023-02-22 14:47:20 -08:00
2022-10-20 10:13:27 +02:00
2023-02-22 14:47:20 -08:00
2022-12-13 08:44:41 -08:00
2022-12-06 12:29:35 -05:00
2023-02-22 14:47:20 -08:00
2022-05-09 16:36:48 -04:00
2022-12-16 03:54:54 -08:00
2022-11-27 22:10:00 -05:00