Commit 209502e1 authored by Linus Torvalds's avatar Linus Torvalds

Update for new notify_change semantics

parent cbba4f5e
...@@ -365,11 +365,9 @@ int hpfs_unlink(struct inode *dir, struct dentry *dentry) ...@@ -365,11 +365,9 @@ int hpfs_unlink(struct inode *dir, struct dentry *dentry)
goto ret; goto ret;
} }
/*printk("HPFS: truncating file before delete.\n");*/ /*printk("HPFS: truncating file before delete.\n");*/
down(&inode->i_sem);
newattrs.ia_size = 0; newattrs.ia_size = 0;
newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME; newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
err = notify_change(dentry, &newattrs); err = notify_change(dentry, &newattrs);
up(&inode->i_sem);
put_write_access(inode); put_write_access(inode);
if (err) if (err)
goto ret; goto ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment