]> git.baikalelectronics.ru Git - kernel.git/commit
9p: Fix the incorrect update of inode size in v9fs_file_write()
authorAbhishek Kulkarni <adkulkar@umail.iu.edu>
Tue, 22 Sep 2009 16:34:05 +0000 (11:34 -0500)
committerEric Van Hensbergen <ericvh@strongmad.austin.ibm.com>
Wed, 23 Sep 2009 18:03:46 +0000 (13:03 -0500)
commita62aabb078213d93417df28003cd26e3d1295b9b
treecff971ce538a12c1d0b315772c733bc91b1913a6
parentae8244c611a7d827cbae092410333640abcba64c
9p: Fix the incorrect update of inode size in v9fs_file_write()

When using the cache=loose flags, the inode's size was not being
updated correctly on a remote write. Thus subsequent reads of
the whole file resulted in a truncated read. Fix it.

Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_file.c