From: Badari Pulavarty Date: Fri, 22 Dec 2006 09:06:23 +0000 (-0800) Subject: [PATCH] Fix for shmem_truncate_range() BUG_ON() X-Git-Tag: v2.6.20-rc2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a3d03aab912624cae799e5772a6eb2ef55083f;p=pandora-kernel.git [PATCH] Fix for shmem_truncate_range() BUG_ON() Ran into BUG() while doing madvise(REMOVE) testing. If we are punching a hole into shared memory segment using madvise(REMOVE) and the entire hole is below the indirect blocks, we hit following assert. BUG_ON(limit <= SHMEM_NR_DIRECT); Signed-off-by: Badari Pulavarty Cc: Hugh Dickins Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed