From c6e28483a9160d0825b8ac29e3918b25d88b771d Mon Sep 17 00:00:00 2001 From: Nanda Okitavera Date: Tue, 16 Jul 2019 04:38:44 +0700 Subject: [PATCH] fs: sdfat: remove unused counter when delayed metadata dirty is disabled Signed-off-by: Nanda Okitavera --- cache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cache.c b/cache.c index f0170c5..8318898 100644 --- a/cache.c +++ b/cache.c @@ -676,7 +676,9 @@ s32 dcache_release_all(struct super_block *sb) s32 ret = 0; cache_ent_t *bp; FS_INFO_T *fsi = &(SDFAT_SB(sb)->fsi); +#ifdef CONFIG_SDFAT_DELAYED_META_DIRTY s32 dirtycnt = 0; +#endif /* Connect list elements: * LRU list : (A - B - ... - bp_front) + (bp_first + ... + bp_last) @@ -706,7 +708,9 @@ s32 dcache_release_all(struct super_block *sb) bp = bp->next; } +#ifdef CONFIG_SDFAT_DELAYED_META_DIRTY DMSG("BD:Release / dirty buf cache: %d (err:%d)", dirtycnt, ret); +#endif return ret; }