fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / adfs / inode.c
index 1dab6a1..c5e42d8 100644 (file)
@@ -298,7 +298,7 @@ adfs_notify_change(struct dentry *dentry, struct iattr *attr)
        unsigned int ia_valid = attr->ia_valid;
        int error;
        
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
 
        /*
         * we can't change the UID or GID of any file -