Changeset 1eaa3cf in mainline for uspace/srv/fs/mfs/mfs.h


Ignore:
Timestamp:
2013-09-13T15:52:21Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb40d86
Parents:
b5ba8f6
Message:

mfs: cache the number of free zones to speed up subsequent requests (do not scan the whole bitmap every time statfs() is invoked).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs.h

    rb5ba8f6 r1eaa3cf  
    4444#include <errno.h>
    4545#include <assert.h>
     46#include <stdbool.h>
    4647#include "../../vfs/vfs.h"
    4748
     
    105106        unsigned isearch;
    106107        unsigned zsearch;
     108
     109        bool nfree_zones_valid;
     110        unsigned nfree_zones;
    107111};
    108112
Note: See TracChangeset for help on using the changeset viewer.