]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/gfs2/inode.c
fs: Give dentry to inode_change_ok() instead of inode
[mirror_ubuntu-bionic-kernel.git] / fs / gfs2 / inode.c
index e4da0ecd32852bb95d5bb3db8ae9cc71991f40f2..d693af5ca5bccfd51050d854f0865b973669c042 100644 (file)
@@ -1932,7 +1932,7 @@ static int gfs2_setattr(struct dentry *dentry, struct iattr *attr)
        if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
                goto out;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                goto out;