StuBS
Inode_Cache Class Reference

#include <fs/inode_cache.h>

Collaboration diagram for Inode_Cache:
[legend]

Static Public Member Functions

static void insert_inode (Inode *inode)
 
static Inodeget_inode (Filesystem *fs, ino_t ino)
 
static int sync_fs_inodes (Filesystem *fs)
 
static void remove_fs_inodes (Filesystem *fs)
 

Static Private Member Functions

static void maybe_evict_inodes ()
 

Static Private Attributes

static const int soft_limit = 64
 
static Inodeicache_first = nullptr
 
static unsigned long num_inodes = 0
 

Member Function Documentation

◆ maybe_evict_inodes()

void Inode_Cache::maybe_evict_inodes ( )
staticprivate

◆ insert_inode()

void Inode_Cache::insert_inode ( Inode inode)
static

◆ get_inode()

Inode * Inode_Cache::get_inode ( Filesystem fs,
ino_t  ino 
)
static

◆ sync_fs_inodes()

int Inode_Cache::sync_fs_inodes ( Filesystem fs)
static

◆ remove_fs_inodes()

void Inode_Cache::remove_fs_inodes ( Filesystem fs)
static

Member Data Documentation

◆ soft_limit

const int Inode_Cache::soft_limit = 64
staticprivate

◆ icache_first

Inode * Inode_Cache::icache_first = nullptr
staticprivate

◆ num_inodes

unsigned long Inode_Cache::num_inodes = 0
staticprivate

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