CernVM-FS
2.12.0
|
#include <glue_buffer.h>
Classes | |
struct | Cursor |
struct | Entry |
struct | Statistics |
Public Member Functions | |
Statistics | GetStatistics () |
DentryTracker () | |
DentryTracker (const DentryTracker &other) | |
DentryTracker & | operator= (const DentryTracker &other) |
~DentryTracker () | |
DentryTracker * | Move () |
void | Add (const uint64_t inode_parent, const char *name, uint64_t timeout_s) |
void | Prune () |
void | Disable () |
bool | is_active () const |
void | SpawnCleaner (unsigned interval_s) |
Cursor | BeginEnumerate () |
bool | NextEntry (Cursor *cursor, uint64_t *inode_parent, NameString *name) |
void | EndEnumerate (Cursor *cursor) |
Static Public Member Functions | |
static void * | MainCleaner (void *data) |
Private Member Functions | |
FRIEND_TEST (T_GlueBuffer, DentryTracker) | |
void | CopyFrom (const DentryTracker &other) |
void | InitLock () |
void | Lock () const |
void | Unlock () const |
void | DoPrune (uint64_t now) |
Private Attributes | |
pthread_mutex_t * | lock_ |
unsigned | version_ |
Statistics | statistics_ |
bool | is_active_ |
BigQueue< Entry > | entries_ |
int | pipe_terminate_ [2] |
int | cleaning_interval_ms_ |
pthread_t | thread_cleaner_ |
Static Private Attributes | |
static const unsigned | kVersion = 0 |
Tracks fuse name lookup replies for active cache eviction. Class renamed from previous name NentryTracker
Definition at line 820 of file glue_buffer.h.
glue::DentryTracker::DentryTracker | ( | ) |
Definition at line 112 of file glue_buffer.cc.
Referenced by Move().
glue::DentryTracker::DentryTracker | ( | const DentryTracker & | other | ) |
glue::DentryTracker::~DentryTracker | ( | ) |
Definition at line 119 of file glue_buffer.cc.
Referenced by RestoreState().
|
inline |
Definition at line 865 of file glue_buffer.h.
Referenced by cvmfs::cvmfs_lookup().
DentryTracker::Cursor glue::DentryTracker::BeginEnumerate | ( | ) |
Definition at line 238 of file glue_buffer.cc.
Referenced by FuseInvalidator::MainInvalidator().
|
private |
Definition at line 150 of file glue_buffer.cc.
Referenced by DentryTracker(), and operator=().
|
inline |
The nentry tracker is only needed for active cache eviction and can otherwise ignore new entries.
Definition at line 882 of file glue_buffer.h.
Referenced by Init().
|
inlineprivate |
Definition at line 906 of file glue_buffer.h.
Referenced by Add(), and Prune().
void glue::DentryTracker::EndEnumerate | ( | Cursor * | cursor | ) |
Definition at line 261 of file glue_buffer.cc.
Referenced by FuseInvalidator::MainInvalidator().
|
private |
|
inline |
Definition at line 851 of file glue_buffer.h.
Referenced by TalkManager::MainResponder(), and perf::TelemetryAggregator::ManuallyUpdateSelectedCounters().
|
private |
Definition at line 223 of file glue_buffer.cc.
Referenced by DentryTracker().
|
inline |
Definition at line 883 of file glue_buffer.h.
|
inlineprivate |
Definition at line 897 of file glue_buffer.h.
Referenced by Add(), BeginEnumerate(), Move(), operator=(), and Prune().
|
static |
Definition at line 180 of file glue_buffer.cc.
Referenced by SpawnCleaner().
DentryTracker * glue::DentryTracker::Move | ( | ) |
Lock object during copy
Definition at line 160 of file glue_buffer.cc.
Referenced by FuseInvalidator::MainInvalidator().
bool glue::DentryTracker::NextEntry | ( | Cursor * | cursor, |
uint64_t * | inode_parent, | ||
NameString * | name | ||
) |
Definition at line 246 of file glue_buffer.cc.
Referenced by FuseInvalidator::MainInvalidator().
DentryTracker & glue::DentryTracker::operator= | ( | const DentryTracker & | other | ) |
void glue::DentryTracker::Prune | ( | ) |
Definition at line 231 of file glue_buffer.cc.
Referenced by MainCleaner(), and FuseInvalidator::MainInvalidator().
void glue::DentryTracker::SpawnCleaner | ( | unsigned | interval_s | ) |
Definition at line 170 of file glue_buffer.cc.
Referenced by Spawn().
|
inlineprivate |
Definition at line 901 of file glue_buffer.h.
Referenced by Add(), EndEnumerate(), Move(), operator=(), and Prune().
|
private |
Definition at line 924 of file glue_buffer.h.
Referenced by DentryTracker(), MainCleaner(), and SpawnCleaner().
Definition at line 921 of file glue_buffer.h.
Referenced by Add(), BeginEnumerate(), CopyFrom(), DoPrune(), Move(), and NextEntry().
|
private |
Definition at line 920 of file glue_buffer.h.
Referenced by Add(), CopyFrom(), Disable(), and is_active().
|
staticprivate |
Definition at line 892 of file glue_buffer.h.
Referenced by CopyFrom().
|
private |
Definition at line 917 of file glue_buffer.h.
Referenced by InitLock(), Lock(), Unlock(), and ~DentryTracker().
|
private |
Definition at line 923 of file glue_buffer.h.
Referenced by DentryTracker(), MainCleaner(), SpawnCleaner(), and ~DentryTracker().
|
private |
Definition at line 919 of file glue_buffer.h.
Referenced by Add(), CopyFrom(), DoPrune(), GetStatistics(), and Move().
|
private |
Definition at line 925 of file glue_buffer.h.
Referenced by SpawnCleaner(), and ~DentryTracker().
|
private |
Definition at line 918 of file glue_buffer.h.
Referenced by CopyFrom().