msdosfs: clean up reference counting
authorNicolas Thery <nthery@gmail.com>
Sat, 28 Feb 2009 17:32:49 +0000 (18:32 +0100)
committerNicolas Thery <nthery@gmail.com>
Sat, 28 Feb 2009 17:32:49 +0000 (18:32 +0100)
commit0640c40432b3d9c21bb2fcde9b4e7e3b2816fa7c
tree0f7e0a5bfb1e04cbf68b50598b7b7ac7d3460a39
parent629f33a733bba046a296b5f1dfa4ef45bc388cb4
msdosfs: clean up reference counting

For consistency and robustness, always test de_refcnt with > 0 or <= 0.

Also assert that de_refcnt is > 0 when deleting file.
sys/vfs/msdosfs/msdosfs_denode.c
sys/vfs/msdosfs/msdosfs_lookup.c