class Page
Defined at line 74 of file ../../src/storage/f2fs/file_cache.h
Public Methods
void Page (FileCache * file_cache, pgoff_t index)
Defined at line 16 of file ../../src/storage/f2fs/file_cache.cc
VnodeF2fs & GetVnode ()
Defined at line 18 of file ../../src/storage/f2fs/file_cache.cc
FileCache & GetFileCache ()
Defined at line 22 of file ../../src/storage/f2fs/file_cache.cc
VmoManager & GetVmoManager ()
Defined at line 20 of file ../../src/storage/f2fs/file_cache.cc
bool SetDirty ()
Defined at line 44 of file ../../src/storage/f2fs/file_cache.cc
F2fs * fs ()
Defined at line 35 of file ../../src/storage/f2fs/file_cache.cc
void Page ()
Defined at line 79 of file ../../src/storage/f2fs/file_cache.h
void Page (const Page & )
Defined at line 81 of file ../../src/storage/f2fs/file_cache.h
Page & operator= (const Page & )
Defined at line 82 of file ../../src/storage/f2fs/file_cache.h
void Page (const Page && )
Defined at line 83 of file ../../src/storage/f2fs/file_cache.h
Page & operator= (const Page && )
Defined at line 84 of file ../../src/storage/f2fs/file_cache.h
void ~Page ()
Defined at line 85 of file ../../src/storage/f2fs/file_cache.h
void fbl_recycle ()
Defined at line 87 of file ../../src/storage/f2fs/file_cache.h
zx_status_t GetVmo ()
If it runs on a discardable VMO, this method ensures that a associated VMO keeps with its
mapping until |this| is evicted from FileCache. If it is backed on a pager's VMO, it does
nothing.
Defined at line 88 of file ../../src/storage/f2fs/file_cache.cc
pgoff_t GetKey ()
Defined at line 89 of file ../../src/storage/f2fs/file_cache.h
pgoff_t GetIndex ()
Defined at line 90 of file ../../src/storage/f2fs/file_cache.h
template <typename U = void>
U * GetAddress ()
Defined at line 102 of file ../../src/storage/f2fs/file_cache.h
bool IsDirty ()
Defined at line 107 of file ../../src/storage/f2fs/file_cache.h
bool IsWriteback ()
Defined at line 108 of file ../../src/storage/f2fs/file_cache.h
bool IsUptodate ()
Defined at line 108 of file ../../src/storage/f2fs/file_cache.cc
bool IsVmoLocked ()
Defined at line 109 of file ../../src/storage/f2fs/file_cache.h
bool IsActive ()
Defined at line 110 of file ../../src/storage/f2fs/file_cache.h
bool IsColdData ()
Defined at line 111 of file ../../src/storage/f2fs/file_cache.h
bool IsCommit ()
Defined at line 112 of file ../../src/storage/f2fs/file_cache.h
bool IsSync ()
Defined at line 113 of file ../../src/storage/f2fs/file_cache.h
bool SetActive ()
Each Setxxx() method atomically sets a flag and returns the previous value.
It is called when the first reference is made.
Defined at line 117 of file ../../src/storage/f2fs/file_cache.h
void WaitOnWriteback ()
Defined at line 119 of file ../../src/storage/f2fs/file_cache.cc
bool SetUptodate ()
Defined at line 115 of file ../../src/storage/f2fs/file_cache.cc
void ClearUptodate ()
Defined at line 117 of file ../../src/storage/f2fs/file_cache.cc
void ClearActive ()
It is called after the last reference is destroyed in FileCache::Downgrade().
Defined at line 119 of file ../../src/storage/f2fs/file_cache.h
uint32_t Size ()
Defined at line 138 of file ../../src/storage/f2fs/file_cache.h
block_t GetBlockAddr ()
Defined at line 139 of file ../../src/storage/f2fs/file_cache.h
bool InTreeContainer ()
Check that |this| Page exists in FileCache.
Defined at line 147 of file ../../src/storage/f2fs/file_cache.h
bool InListContainer ()
Check that |this| Page exists in any PageList.
Defined at line 149 of file ../../src/storage/f2fs/file_cache.h
zx_status_t VmoOpUnlock (bool evict)
Defined at line 171 of file ../../src/storage/f2fs/file_cache.cc
zx::result<bool> VmoOpLock ()
Defined at line 179 of file ../../src/storage/f2fs/file_cache.cc
void ClearWriteback ()
Defined at line 141 of file ../../src/storage/f2fs/file_cache.cc
bool SetCommit ()
Defined at line 150 of file ../../src/storage/f2fs/file_cache.cc
void ClearCommit ()
Defined at line 152 of file ../../src/storage/f2fs/file_cache.cc
bool SetSync ()
Defined at line 154 of file ../../src/storage/f2fs/file_cache.cc
void ClearSync ()
Defined at line 156 of file ../../src/storage/f2fs/file_cache.cc
void SetColdData ()
Defined at line 158 of file ../../src/storage/f2fs/file_cache.cc
bool ClearColdData ()
Defined at line 163 of file ../../src/storage/f2fs/file_cache.cc
zx_status_t Read (void * data, uint64_t offset, size_t len)
Defined at line 187 of file ../../src/storage/f2fs/file_cache.cc
zx_status_t Write (const void * data, uint64_t offset, size_t len)
Defined at line 198 of file ../../src/storage/f2fs/file_cache.cc
Protected Methods
void RecyclePage ()
It notifies VmoManager that there is no reference to |this|.
Defined at line 24 of file ../../src/storage/f2fs/file_cache.cc
Friends
class LockedPage