]> git.neil.brown.name Git - history.git/commit
[PATCH] tmpfs 5/7 writepage/truncate race fix
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:20:23 +0000 (18:20 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:20:23 +0000 (18:20 -0700)
commit6673fd3d3213b8b1e87814ca7e7eb15bd31110cc
tree55c2191eca23084688ba3fcd37a899654bb41083
parent686e9e7248fedeaf5874c9d1ee1690458cb3e9ac
[PATCH] tmpfs 5/7 writepage/truncate race fix

From: Hugh Dickins <hugh@veritas.com>

If it's possible for a tmpfs page beyond i_size to remain in cache until
shmem_truncate repeats truncate_inode_pages, then shmem_writepage's
BUG_ON(index >= info->next_index) cannot be completely safe.  But it's a
useful check in a fragile area, so retain it when not in shmem_truncate.
mm/shmem.c