]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: Add an assertion for clean_zn_cnt
authorhujianyang <hujianyang@huawei.com>
Tue, 3 Jun 2014 06:49:11 +0000 (14:49 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 3 Jun 2014 08:16:51 +0000 (11:16 +0300)
commit2c449a8afc3d71c28d3344ab31ec45c475273b07
tree8e9a89a8e393338524ec0ddf2e856b437b91c17e
parentae1fb78e9b9d3d5f3945c456b08724ef791497e1
UBIFS: Add an assertion for clean_zn_cnt

This patch adds a new ubifs_assert() in ubifs_tnc_close() to check
if there are any leaks of per-filesystem @clean_zn_cnt. This new
assert inspects whether the return value of ubifs_destroy_tnc_subtree()
is equal to @clean_zn_cnt or not while umount.

Artem: a minor amendment

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/tnc.c