Skip to content

Commit

Permalink
fs: sdfat: remove unused counter when delayed metadata dirty is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Nanda Okitavera <codeharuka.yusa@gmail.com>
  • Loading branch information
okitavera authored and cryptomilk committed Jul 16, 2019
1 parent a60552f commit 5671af0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cache.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5671af0

Please sign in to comment.