patch-2.3.45 linux/fs/nfsd/vfs.c

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

diff -u --recursive --new-file v2.3.44/linux/fs/nfsd/vfs.c linux/fs/nfsd/vfs.c
@@ -310,11 +310,6 @@
 	if (iap->ia_valid & ATTR_SIZE) {
 		fh_lock(fhp);
 		err = notify_change(dentry, iap);
-		if (!err) {
-			vmtruncate(inode,iap->ia_size);		
-			if (inode->i_op && inode->i_op->truncate)
-				inode->i_op->truncate(inode);
-		}
 		fh_unlock(fhp);
 		put_write_access(inode);
 	}
@@ -1082,11 +1077,6 @@
 		cap_clear(current->cap_effective);
 	}
 	err = notify_change(dentry, &newattrs);
-	if (!err) {
-		vmtruncate(inode, size);
-		if (inode->i_op && inode->i_op->truncate)
-			inode->i_op->truncate(inode);
-	}
 	if (current->fsuid != 0)
 		current->cap_effective = saved_cap;
 	put_write_access(inode);

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