locks: break delegations on any attribute modification
[linux-block.git] / drivers / base / devtmpfs.c
index 1b8490e2fbdeae0c62799a30cfd2c1848874d169..0f3820121e02effe1c0dcf257cafadad02fc7469 100644 (file)
@@ -216,7 +216,7 @@ static int handle_create(const char *nodename, umode_t mode, kuid_t uid,
                newattrs.ia_gid = gid;
                newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID;
                mutex_lock(&dentry->d_inode->i_mutex);
-               notify_change(dentry, &newattrs);
+               notify_change(dentry, &newattrs, NULL);
                mutex_unlock(&dentry->d_inode->i_mutex);
 
                /* mark as kernel-created inode */
@@ -322,7 +322,7 @@ static int handle_remove(const char *nodename, struct device *dev)
                        newattrs.ia_valid =
                                ATTR_UID|ATTR_GID|ATTR_MODE;
                        mutex_lock(&dentry->d_inode->i_mutex);
-                       notify_change(dentry, &newattrs);
+                       notify_change(dentry, &newattrs, NULL);
                        mutex_unlock(&dentry->d_inode->i_mutex);
                        err = vfs_unlink(parent.dentry->d_inode, dentry, NULL);
                        if (!err || err == -ENOENT)