Whamcloud - gitweb
- move the peter branch changes to the head
[fs/lustre-release.git] / lustre / llite / file.c
index cca46cc..41ff0b8 100644 (file)
@@ -49,7 +49,7 @@ static int ll_file_open(struct inode *inode, struct file *file)
         /*  XXX object needs to be cleaned up if mdc_open fails */
         /*  XXX error handling appropriate here? */
         if (lli->lli_smd == NULL || lli->lli_smd->lmd_object_id == 0) {
-                struct mdc_obd *mdc = sbi2mdc(ll_s2sbi(inode->i_sb));
+                struct client_obd *mdc = sbi2mdc(ll_s2sbi(inode->i_sb));
                 struct inode * inode = file->f_dentry->d_inode;
 
                 lli->lli_smd = NULL; 
@@ -59,7 +59,7 @@ static int ll_file_open(struct inode *inode, struct file *file)
                 }
                 oa->o_valid = OBD_MD_FLMODE;
                 oa->o_mode = S_IFREG | 0600;
-                oa->o_easize = mdc->mdc_max_mdsize;
+                oa->o_easize = mdc->cl_max_mdsize;
                 rc = obd_create(ll_i2obdconn(inode), oa, &lli->lli_smd);
                 if (rc)
                         RETURN(rc);