Merge remote-tracking branch 'jk/vfs' into work.misc
[cascardo/linux.git] / fs / gfs2 / inode.c
index e4da0ec..d693af5 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;