OSDN Git Service

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)
commit637d020a02cd734bf27acfc56c6d942cddd9eb80
treecff971ce538a12c1d0b315772c733bc91b1913a6
parent7549ae3e81cc45908cbeee54a52b24f247fb0a2d
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