CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
glue::InodeTracker::VfsPutRaii Class Reference

#include <glue_buffer.h>

Collaboration diagram for glue::InodeTracker::VfsPutRaii:

Public Member Functions

 VfsPutRaii (InodeTracker *t)
 
 ~VfsPutRaii ()
 
bool VfsPut (const uint64_t inode, const uint32_t by)
 

Private Attributes

InodeTrackertracker_
 

Detailed Description

To avoid taking the InodeTracker mutex multiple times, the fuse forget_multi callback releases inodes references through this RAII object. Copy and assign operator should be deleted but that would require all compilers to use RVO. TODO(jblomer): fix with C++11

Definition at line 616 of file glue_buffer.h.

Constructor & Destructor Documentation

glue::InodeTracker::VfsPutRaii::VfsPutRaii ( InodeTracker t)
inlineexplicit

Definition at line 618 of file glue_buffer.h.

Here is the call graph for this function:

glue::InodeTracker::VfsPutRaii::~VfsPutRaii ( )
inline

Definition at line 621 of file glue_buffer.h.

Here is the call graph for this function:

Member Function Documentation

bool glue::InodeTracker::VfsPutRaii::VfsPut ( const uint64_t  inode,
const uint32_t  by 
)
inline

Definition at line 623 of file glue_buffer.h.

Referenced by cvmfs::cvmfs_forget().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

InodeTracker* glue::InodeTracker::VfsPutRaii::tracker_
private

Definition at line 644 of file glue_buffer.h.

Referenced by VfsPut(), VfsPutRaii(), and ~VfsPutRaii().


The documentation for this class was generated from the following file: