[lkml]   [2005]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH -rc2-mm2] update tmpfs for new delete_inode behavior
LTP on tmpfs hits kernel BUG at mm/shmem.c:680!  shmem_delete_inode needs
to truncate_inode_pages for itself now. It's not immediately obvious since
many cases get covered by shmem_truncate's followup truncate_inode_pages:
maybe with thought we can just call it once, but right now fix the BUG.

Signed-off-by: Hugh Dickins <>

--- 2.6.13-rc2-mm2/mm/shmem.c 2005-07-06 11:23:52.000000000 +0100
+++ linux/mm/shmem.c 2005-07-12 13:58:26.000000000 +0100
@@ -668,6 +668,7 @@ static void shmem_delete_inode(struct in
struct shmem_inode_info *info = SHMEM_I(inode);

if (inode->i_op->truncate == shmem_truncate) {
+ truncate_inode_pages(inode->i_mapping, 0);
shmem_unacct_size(info->flags, inode->i_size);
inode->i_size = 0;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-07-12 16:24    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean