From c50659ae6bda45fcfb3ea68f1be0a44b487ae1a4 Mon Sep 17 00:00:00 2001 From: batt Date: Sat, 20 Sep 2008 10:50:45 +0000 Subject: [PATCH] Add caching of current header, add some docs. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1824 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/fs/battfs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bertos/fs/battfs.h b/bertos/fs/battfs.h index f53bb916..b14cb1c6 100644 --- a/bertos/fs/battfs.h +++ b/bertos/fs/battfs.h @@ -203,8 +203,9 @@ typedef struct BattFsSuper * the entire disk in memory. */ pgcnt_t *page_array; - pgcnt_t curr_page; - bool cache_dirty; + struct BattFsPageHeader curr_hdr; ///< Current page header (cached)- + pgcnt_t curr_page; ///< Current page loaded in disk buffer. + bool cache_dirty; ///< True if current cache is dirty (nneds to be flushed). /** * Lowest address, in page array, for free pages. -- 2.25.1