HFS+: fix unlink of links
authorRoman Zippel <zippel@linux-m68k.org>
Wed, 9 Apr 2008 15:44:07 +0000 (17:44 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Apr 2008 20:37:51 +0000 (13:37 -0700)
commit76b0c26af2736b7e5b87e6ed7ab63901483d5736
tree5d5178cdbf82bcc2ab581826bef033377fa1e210
parentf4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed
HFS+: fix unlink of links

Some time ago while attempting to handle invalid link counts, I botched
the unlink of links itself, so this patch fixes this now correctly, so
that only the link count of nodes that don't point to links is ignored.
Thanks to Vlado Plaga <rechner@vlado-do.de> to notify me of this
problem.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfsplus/dir.c