fs: Give dentry to inode_change_ok() instead of inode
[cascardo/linux.git] / fs / ocfs2 / dlmfs / dlmfs.c
index 47b3b2d..6a4b216 100644 (file)
@@ -211,7 +211,7 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr)
        struct inode *inode = d_inode(dentry);
 
        attr->ia_valid &= ~ATTR_SIZE;
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;
 
@@ -469,7 +469,7 @@ static int dlmfs_mkdir(struct inode * dir,
 {
        int status;
        struct inode *inode = NULL;
-       struct qstr *domain = &dentry->d_name;
+       const struct qstr *domain = &dentry->d_name;
        struct dlmfs_inode_private *ip;
        struct ocfs2_cluster_connection *conn;
 
@@ -518,7 +518,7 @@ static int dlmfs_create(struct inode *dir,
 {
        int status = 0;
        struct inode *inode;
-       struct qstr *name = &dentry->d_name;
+       const struct qstr *name = &dentry->d_name;
 
        mlog(0, "create %.*s\n", name->len, name->name);