• Andrew Morton's avatar
    [PATCH] tmpfs truncation fix · 65ce13e2
    Andrew Morton authored
    From: Hugh Dickins <hugh@veritas.com>
    
    Recent testing has shown that swapoff can sneak a page back into the
    tmpfs page cache after truncate_inode_pages has cleaned it, before
    shmem_truncate resets next_index to stop that: BUG_ON(inode->i_blocks)
    in shmem_delete_inode.  So call truncate_inode_pages again to be safe.
    65ce13e2
shmem.c 48.9 KB