From 92a3d03aab912624cae799e5772a6eb2ef55083f Mon Sep 17 00:00:00 2001 From: Badari Pulavarty Date: Fri, 22 Dec 2006 01:06:23 -0800 Subject: [PATCH] [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-format-patch failed