Whamcloud - gitweb
- bug fixed: variable was used being uninitialized
authoralex <alex>
Mon, 29 Sep 2003 20:49:21 +0000 (20:49 +0000)
committeralex <alex>
Mon, 29 Sep 2003 20:49:21 +0000 (20:49 +0000)
lustre/obdfilter/filter_io_26.c

index 3b90827..e522962 100644 (file)
@@ -96,6 +96,7 @@ int filter_commitrw_write(struct obd_export *exp, int objcount,
         LASSERT(objcount == 1);
         LASSERT(current->journal_info == NULL);
 
+        inode = res->dentry->d_inode;
         blocks_per_page = PAGE_SIZE >> inode->i_blkbits;
        LASSERT(blocks_per_page <= MAX_BLOCKS_PER_PAGE);
 
@@ -110,7 +111,6 @@ int filter_commitrw_write(struct obd_export *exp, int objcount,
         cleanup_phase = 1;
         fso.fso_dentry = res->dentry;
         fso.fso_bufcnt = obj->ioo_bufcnt;
-        inode = res->dentry->d_inode;
 
         push_ctxt(&saved, &obd->obd_ctxt, NULL);
         cleanup_phase = 2;