]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/kernfs/inode.c
fs: Give dentry to inode_change_ok() instead of inode
[mirror_ubuntu-zesty-kernel.git] / fs / kernfs / inode.c
index 63b925d5ba1e43c67a83dfc1c92f59325fc954ba..df21f5b755499323e822d20cf2a0f8546110d236 100644 (file)
@@ -122,7 +122,7 @@ int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr)
                return -EINVAL;
 
        mutex_lock(&kernfs_mutex);
-       error = inode_change_ok(inode, iattr);
+       error = setattr_prepare(dentry, iattr);
        if (error)
                goto out;