aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/tnc.c')
-rw-r--r--fs/ubifs/tnc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c
index 9083bc7ed4ae..8a40cf9c02d7 100644
--- a/fs/ubifs/tnc.c
+++ b/fs/ubifs/tnc.c
@@ -2859,10 +2859,11 @@ void ubifs_tnc_close(struct ubifs_info *c)
2859{ 2859{
2860 tnc_destroy_cnext(c); 2860 tnc_destroy_cnext(c);
2861 if (c->zroot.znode) { 2861 if (c->zroot.znode) {
2862 long n; 2862 long n, freed;
2863 2863
2864 ubifs_destroy_tnc_subtree(c->zroot.znode);
2865 n = atomic_long_read(&c->clean_zn_cnt); 2864 n = atomic_long_read(&c->clean_zn_cnt);
2865 freed = ubifs_destroy_tnc_subtree(c->zroot.znode);
2866 ubifs_assert(freed == n);
2866 atomic_long_sub(n, &ubifs_clean_zn_cnt); 2867 atomic_long_sub(n, &ubifs_clean_zn_cnt);
2867 } 2868 }
2868 kfree(c->gap_lebs); 2869 kfree(c->gap_lebs);