libminixfs: do not make fs_sync upcalls

The file system may not be expecting these upcalls at arbitrary
moments, while they serve only as a performance optimization anyway.

Change-Id: I0748fd1f6c2645ddbb64466093ee36025aac45e0
This commit is contained in:
David van Moolenbroek 2014-08-24 09:38:25 +00:00
parent 35118b0a91
commit c5beebb68d
3 changed files with 1 additions and 8 deletions

View file

@ -59,7 +59,6 @@ void lmfs_blockschange(dev_t dev, int delta);
/* calls that libminixfs does into fs */
void fs_blockstats(u64_t *blocks, u64_t *free, u64_t *used);
int fs_sync(void);
/* get_block arguments */
#define NORMAL 0 /* forces get_block to do disk read */

View file

@ -854,7 +854,7 @@ void lmfs_buf_pool(int new_nr_bufs)
if(nr_bufs > 0) {
assert(buf);
(void) fs_sync();
lmfs_flushall();
for (bp = &buf[0]; bp < &buf[nr_bufs]; bp++) {
if(bp->data) {
assert(bp->lmfs_bytes > 0);

View file

@ -90,12 +90,6 @@ void testend(void)
/* Fake some libminixfs client functions */
int
fs_sync(void)
{
return 0;
}
void
fs_blockstats(u64_t *total, u64_t *free, u64_t *used)
{