[PATCH] tmpfs caused truncate BUG
Just before removing truncate_complete_page's BUG_ON(page_mapped(page)), thought I'd recheck on a few filesystems. The shame! Easily triggered with tmpfs: not because of recent changes, but because shmem_nopage omitted the i_size_read from Andrea's careful truncate_count/i_size_read /cachelookup/truncate_count sequence. For varying reasons, other users of shmem_getpage can't go beyond i_size, so just add it to shmem_nopage. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing
Please register or sign in to comment