From a82f601b7c146602af974878f6c6fec49375a246 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 28 Jun 2016 23:05:22 -0500 Subject: [PATCH] Added reference count to inode. --- src/ox/fs/filestore.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ox/fs/filestore.hpp b/src/ox/fs/filestore.hpp index 5ee872ec9..c01cc8031 100644 --- a/src/ox/fs/filestore.hpp +++ b/src/ox/fs/filestore.hpp @@ -37,11 +37,12 @@ class FileStore { struct Inode { // the next Inode in memory FsSize_t next; - FsSize_t left, right; FsSize_t dataLen; // The following variables should not be assumed to exist InodeId_t m_id; + uint8_t refs; + FsSize_t left, right; FsSize_t size(); void setId(InodeId_t);