seaweedfs/weed/mount
Chris Lu 2ee6e4f391
mount: refresh and evict hot dir cache (#8174)
* mount: refresh and evict hot dir cache

* mount: guard dir update window and extend TTL

* mount: reuse timestamp for cache mark

* Apply suggestion from @gemini-code-assist[bot]

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* mount: make dir cache tuning configurable

* mount: dedupe dir update notices

* mount: restore invalidate-all cache helper

* mount: keep hot dir tuning constants

* mount: centralize cache state reset

* mount: mark refresh completion time

* mount: allow disabling idle eviction

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-31 13:46:37 -08:00
..
meta_cache mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
page_writer chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
unmount fix GOOS 2022-02-14 03:14:05 -08:00
dirty_pages_chunked.go Fix: prevent panic when swap file creation fails (#7957) 2026-01-04 01:12:37 -08:00
error_classifier.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
filehandle_map.go refactor 2025-03-19 21:01:47 -07:00
filehandle_read.go mount: efficient file lookup in large directories, skipping directory caching (#7818) 2025-12-18 21:19:15 -08:00
filehandle.go mount: improve read throughput with parallel chunk fetching (#7569) 2025-11-29 10:06:11 -08:00
filer_conf.go worm grace period and retention time support (#6404) 2024-12-31 18:41:43 -08:00
inode_to_path_test.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
inode_to_path.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
locked_entry.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
page_writer_pattern.go atomic operation 2022-08-26 17:04:11 -07:00
page_writer.go Fix: prevent panic when swap file creation fails (#7957) 2026-01-04 01:12:37 -08:00
rdma_client.go weed/mount: refactor to use atomic type (#7157) 2025-08-23 10:22:17 -07:00
weedfs_attr_darwin.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_attr_freebsd.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_attr_linux.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_attr.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_dir_lookup.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_dir_mkrm.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
weedfs_dir_read.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
weedfs_file_copy_range.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_file_io.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_file_lseek.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_file_mkrm.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
weedfs_file_read.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_file_sync.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_file_write.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_filehandle.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_forget.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
weedfs_grpc_server.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
weedfs_link.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_metadata_flush.go mount: efficient file lookup in large directories, skipping directory caching (#7818) 2025-12-18 21:19:15 -08:00
weedfs_quota_test.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
weedfs_quota.go fix: improve mount quota enforcement to prevent overflow (#7804) 2025-12-17 01:14:01 -08:00
weedfs_rename.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
weedfs_stats.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
weedfs_symlink.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_unsupported.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_write.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
weedfs_xattr_freebsd.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs_xattr.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00
weedfs.go mount: refresh and evict hot dir cache (#8174) 2026-01-31 13:46:37 -08:00
wfs_filer_client.go adjust fuse logs 2025-12-31 13:04:05 -08:00
wfs_save.go Enable writeback_cache and async_dio FUSE options (#7980) 2026-01-06 10:50:54 -08:00