Fix xfs_splice_write() so appended data gets to disk.
xfs_splice_write() failed to update the on disk inode size when
extending the so when the file was closed the range extended by
splice was truncated off. Hence any region of a file written
to by splice would end up as a hole full of zeros.
Date: Tue Sep 5 11:58:45 AEST 2006
Workarea: chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by: lachlan
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:26920a
fs/xfs/linux-2.6/xfs_lrw.c - 1.251 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_lrw.c.diff?r1=text&tr1=1.251&r2=text&tr2=1.250&f=h
- Update xfs inode size if xfs_splice_write is writing beyond the
end of the current file.
|