From: batt Date: Sat, 20 Sep 2008 10:50:45 +0000 (+0000) Subject: Add caching of current header, add some docs. X-Git-Tag: 2.0.0~110 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c50659ae6bda45fcfb3ea68f1be0a44b487ae1a4;p=bertos.git Add caching of current header, add some docs. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1824 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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.