Add caching of current header, add some docs.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 20 Sep 2008 10:50:45 +0000 (10:50 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 20 Sep 2008 10:50:45 +0000 (10:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1824 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/fs/battfs.h

index f53bb9164d82a396f279c36564e75a94c60c7763..b14cb1c659ec2de231a6501dfddc6e510730f696 100644 (file)
@@ -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.