fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / ufs / truncate.c
index f04f89f..92cde99 100644 (file)
@@ -496,7 +496,7 @@ int ufs_setattr(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);
        if (error)
                return error;