Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253007
b: refs/heads/master
c: 8370723
h: refs/heads/master
i:
  253005: 3eac1ca
  253003: 0dda7e7
  252999: 763e0c7
  252991: 11454ba
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jun 3, 2011
1 parent 77ccebe commit 1773e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 812eb258311f89bcd664a34a620f249d54a2cd83
refs/heads/master: 837072377034d0a0b18b851d1ab95676b245cc0a
9 changes: 5 additions & 4 deletions trunk/fs/ubifs/tnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2876,12 +2876,13 @@ static void tnc_destroy_cnext(struct ubifs_info *c)
*/
void ubifs_tnc_close(struct ubifs_info *c)
{
long clean_freed;

tnc_destroy_cnext(c);
if (c->zroot.znode) {
clean_freed = ubifs_destroy_tnc_subtree(c->zroot.znode);
atomic_long_sub(clean_freed, &ubifs_clean_zn_cnt);
long n;

ubifs_destroy_tnc_subtree(c->zroot.znode);
n = atomic_long_read(&c->clean_zn_cnt);
atomic_long_sub(n, &ubifs_clean_zn_cnt);
}
kfree(c->gap_lebs);
kfree(c->ilebs);
Expand Down

0 comments on commit 1773e7f

Please sign in to comment.