]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/os/seastore: introduce cache_hint_t
authorXuehan Xu <xuxuehan@qianxin.com>
Sat, 14 Dec 2024 13:26:33 +0000 (21:26 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 6 Jan 2025 03:04:33 +0000 (11:04 +0800)
commitb413f76b0a5f9990bf41cf1a0295798cd4da3bd0
treede7ae54c33ca3488ef0efd88f947046de7d0dba5
parent5c8c1d844f0e47937a8bdf6f1206f171baeed13b
crimson/os/seastore: introduce cache_hint_t

Layers above Cache can use cache_hint_t to notify Cache whether to put
the extents to Cache::lru.

CEPH_OSD_OP_FLAG_FADVISE_DONTNEED and CEPH_OSD_OP_FLAG_FADVISE_NOCACHE
will be treated as "no need to put into Cache::lru"

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
13 files changed:
src/crimson/os/seastore/async_cleaner.cc
src/crimson/os/seastore/async_cleaner.h
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cache.h
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/seastore.h
src/crimson/os/seastore/seastore_types.h
src/crimson/os/seastore/transaction.h
src/crimson/os/seastore/transaction_manager.cc
src/crimson/os/seastore/transaction_manager.h
src/crimson/tools/store_nbd/tm_driver.cc
src/test/crimson/seastore/test_btree_lba_manager.cc
src/test/crimson/seastore/test_seastore_cache.cc