fs: sdfat: remove unused counter when delayed metadata dirty is disabled

Signed-off-by: Nanda Okitavera <codeharuka.yusa@gmail.com>
This commit is contained in:
Nanda Okitavera 2019-07-16 04:38:44 +07:00 committed by TBK
parent da6c1fd4f8
commit c6e28483a9
No known key found for this signature in database
GPG Key ID: 5FFB25718720C7D7
1 changed files with 4 additions and 0 deletions

View File

@ -676,7 +676,9 @@ s32 dcache_release_all(struct super_block *sb)
s32 ret = 0; s32 ret = 0;
cache_ent_t *bp; cache_ent_t *bp;
FS_INFO_T *fsi = &(SDFAT_SB(sb)->fsi); FS_INFO_T *fsi = &(SDFAT_SB(sb)->fsi);
#ifdef CONFIG_SDFAT_DELAYED_META_DIRTY
s32 dirtycnt = 0; s32 dirtycnt = 0;
#endif
/* Connect list elements: /* Connect list elements:
* LRU list : (A - B - ... - bp_front) + (bp_first + ... + bp_last) * 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; bp = bp->next;
} }
#ifdef CONFIG_SDFAT_DELAYED_META_DIRTY
DMSG("BD:Release / dirty buf cache: %d (err:%d)", dirtycnt, ret); DMSG("BD:Release / dirty buf cache: %d (err:%d)", dirtycnt, ret);
#endif
return ret; return ret;
} }