This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster/gfs-kernel/src/gfs ops_file.c
- From: bmarzins at sourceware dot org
- To: cluster-cvs at sources dot redhat dot com
- Date: 10 Dec 2005 00:44:12 -0000
- Subject: cluster/gfs-kernel/src/gfs ops_file.c
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: bmarzins@sourceware.org 2005-12-10 00:44:12
Modified files:
gfs-kernel/src/gfs: ops_file.c
Log message:
Fix for bz 142849
When you do gfs_write on a stuffed inode, you don't update the page cache,
because the inodes are stored in the buffer cache. This doesn't effect reads,
because gfs special cases the stuffed reads. Unfortunately, sendfile needs to
use the page cache, because it relys on the destination socket's sendpage
routine to work. So my fix is: after you do a write on a stuffed inode, if the
first page of the file is cached (It appears from looking at the code that
there is already an assumption that stuffed inodes will never be more than a
page in length) mark the cached page as not uptodate.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_file.c.diff?cvsroot=cluster&r1=1.20&r2=1.21