]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix for shmem_truncate_range() BUG_ON()
authorBadari Pulavarty <pbadari@us.ibm.com>
Sat, 6 Jan 2007 23:58:15 +0000 (00:58 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 9 Jan 2007 02:23:34 +0000 (03:23 +0100)
commitac7663f17a4b5dc08776eb71f870bde40a0e5a37
tree1d5b98f16bb3a0119872cfc347cd6447990c7901
parent45c97a2582a6dc2a41fbb71b14fd4c61402ad926
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 <pbadari@us.ibm.com>
Forwarded-by: Jordan Neumeyer
Signed-off-by: Adrian Bunk <bunk@stusta.de>
mm/shmem.c