patch-2.3.45 linux/fs/nfs/inode.c

Next file: linux/fs/nfsd/nfsfh.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -689,6 +689,8 @@
 	if (attr->ia_valid & ATTR_MTIME)
 		inode->i_mtime = fattr.mtime.seconds;
 	error = nfs_refresh_inode(inode, &fattr);
+	if (!error && (attr->ia_valid & ATTR_SIZE))
+		vmtruncate(inode, attr->ia_size);
 out:
 	return error;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)