Fix an error in writepage when a file is extended.
authorluc <luc>
Thu, 4 Aug 2005 22:47:36 +0000 (22:47 +0000)
committerluc <luc>
Thu, 4 Aug 2005 22:47:36 +0000 (22:47 +0000)
commitc85c5fe1c37f7fac343557a94f7d6726f9b7403c
tree7cb38aec31cb2d7b752f64830c65730f79a49ded
parent0128ef2c964bf34556e8f683851a4d2d5e7cf3b3
Fix an error in writepage when a file is extended.

When a file is extended with truncate(), the call to inode_setattr() in yaffs_setattr()
call vmtruncate() which itself call a bunches of yaffs_writepage().
There we must NOT fill page whit index greater that the one given by the inode
'cos these pages refers to parts of the file which doesn't physically exists.
yaffs_fs.c