We have to decrease link-count of the parent directory when removing a subdirectory.
Signed-off-by: Jan Kara <[EMAIL PROTECTED]> diff -rupX /home/jack/.kerndiffexclude linux-2.6.20-5-large_file_fix/fs/udf/namei.c linux-2.6.20-6-rmdir_fix/fs/udf/namei.c --- linux-2.6.20-5-large_file_fix/fs/udf/namei.c 2007-02-22 14:57:59.000000000 +0100 +++ linux-2.6.20-6-rmdir_fix/fs/udf/namei.c 2007-03-01 16:26:45.000000000 +0100 @@ -878,7 +878,7 @@ static int udf_rmdir(struct inode * dir, inode->i_nlink); clear_nlink(inode); inode->i_size = 0; - inode_dec_link_count(inode); + inode_dec_link_count(dir); inode->i_ctime = dir->i_ctime = dir->i_mtime = current_fs_time(dir->i_sb); mark_inode_dirty(dir); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/