From: Eric Mei Date: Tue, 15 Dec 2009 18:13:12 +0000 (-0700) Subject: b=20645 Call vmtruncate again after truncate. X-Git-Tag: 1.10.0.33~26 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=inline;h=3bbe90f2827dd972dfb9bb5ca52bd3b60b553069;hp=3bbe90f2827dd972dfb9bb5ca52bd3b60b553069;p=fs%2Flustre-release.git b=20645 Call vmtruncate again after truncate. Due to race between read and truncate, read may populate cache pages outside of the file size range, then next truncate-expand will see the stale page. To fix this, we do a second vmtruncate at the end of truncation. r=jay r=rread ---