patch-2.4.10 linux/fs/smbfs/inode.c

Next file: linux/fs/stat.c
Previous file: linux/fs/select.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -544,7 +544,9 @@
 					 attr->ia_size);
 		if (error)
 			goto out;
-		vmtruncate(inode, attr->ia_size);
+		error = vmtruncate(inode, attr->ia_size);
+		if (error)
+			goto out;
 		refresh = 1;
 	}
 

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