From: Evgeniy Dushistov Date: Sun, 25 Jun 2006 12:47:18 +0000 (-0700) Subject: [PATCH] ufs: ufs_trunc_indirect: infinite cycle X-Git-Tag: v2.6.18-rc1~1028 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2061df0f89201c0abeb4c17d343309c9fae5b861;p=pandora-kernel.git [PATCH] ufs: ufs_trunc_indirect: infinite cycle Currently, ufs write support have two sets of problems: work with files and work with directories. This series of patches should solve the first problem. This patch is similar to http://lkml.org/lkml/2006/1/17/61 this patch complements it. The situation the same: in ufs_trunc_(not direct), we read block, check if count of links to it is equal to one, if so we finish cycle, if not continue. Because of "count of links" always >=2 this operation cause infinite cycle and hang up the kernel. Signed-off-by: Evgeniy Dushistov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed