]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] udf: decrement correct link count in udf_rmdir
authorStephen Mollett <molletts@yahoo.com>
Tue, 8 May 2007 07:31:31 +0000 (00:31 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:46 +0000 (14:32 -0700)
commit35196129ffcfe139f6dd90cba41262450b81172b
tree819af60ce7a4e5766cce23285ea694a96f6fbade
parent041f08ecb28db5be31e6de339c7abb3fe369ec53
[PATCH] udf: decrement correct link count in udf_rmdir

It appears that a minor thinko occurred in udf_rmdir and the
(already-cleared) link count on the directory that is being removed was
being decremented instead of the link count on its parent directory.  This
gives rise to lots of kernel messages similar to:

UDF-fs warning (device loop1): udf_rmdir: empty directory has nlink != 2 (8)

when removing directory trees.  No other ill effects have been observed but
I guess it could theoretically result in the link count overflowing on a
very long-lived, much modified directory.

Signed-off-by: Stephen Mollett <molletts@yahoo.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Jan Kara <jack@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
fs/udf/namei.c