• Stephen Mollett's avatar
    udf: decrement correct link count in udf_rmdir · c007c06e
    Stephen Mollett authored
    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: default avatarStephen Mollett <molletts@yahoo.com>
    Cc: Dave Hansen <haveblue@us.ibm.com>
    Cc: Jan Kara <jack@ucw.cz>
    Cc: <stable@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c007c06e
namei.c 32.7 KB