newattrs.ia_ctime = CURRENT_TIME;
/* avoid notify_change() since it wants to update dentry->d_parent */
- lock_kernel();
code = inode_change_ok(inode, &newattrs);
if (!code) {
#ifdef INODE_SETATTR_NOT_VOID
inode_setattr(inode, &newattrs);
#endif
}
- unlock_kernel();
if (!code)
truncate_inode_pages(&inode->i_data, asize);
code = -code;