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)
commit3bbe90f2827dd972dfb9bb5ca52bd3b60b553069
tree931f32061211d5e0a95f6717cfb625edeebc4e19
parentff359e141b6cfc1a9c2c3f3765fabc136e3f9040
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
lustre/llite/vvp_io.c