patch-2.3.47 linux/fs/attr.c

Next file: linux/fs/binfmt_script.c
Previous file: linux/fs/adfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/fs/attr.c linux/fs/attr.c
@@ -62,10 +62,8 @@
 		inode->i_uid = attr->ia_uid;
 	if (ia_valid & ATTR_GID)
 		inode->i_gid = attr->ia_gid;
-	if (ia_valid & ATTR_SIZE) {
-		inode->i_size = attr->ia_size;
+	if (ia_valid & ATTR_SIZE)
 		vmtruncate(inode, attr->ia_size);
-	}
 	if (ia_valid & ATTR_ATIME)
 		inode->i_atime = attr->ia_atime;
 	if (ia_valid & ATTR_MTIME)

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