search for: 798c622

Displaying 1 result from an estimated 1 matches for "798c622".

Did you mean: 7798.622
2013 Dec 26
0
[PATCH] core: Avoid initializing the cache more than once
...ed-off-by: Raphael S. Carvalho <raphael.scarv at gmail.com> --- core/fs/cache.c | 2 ++ core/fs/diskio.c | 1 + core/fs/fs.c | 5 +++-- core/include/fs.h | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/fs/cache.c b/core/fs/cache.c index 3b21fc2..798c622 100644 --- a/core/fs/cache.c +++ b/core/fs/cache.c @@ -55,6 +55,8 @@ void cache_init(struct device *dev, int block_size_shift) data += dev->cache_block_size; prev = cur++; } + + dev->cache_init = 1; /* Set cache as initialized */ } /* diff --git a/core/fs/diskio....