Whamcloud - gitweb
b=20645 Call vmtruncate again after truncate.
authorEric Mei <Eric.Mei@Sun.COM>
Tue, 15 Dec 2009 18:13:12 +0000 (11:13 -0700)
committerRobert Read <rread@sun.com>
Tue, 15 Dec 2009 19:17:53 +0000 (11:17 -0800)
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


No differences found