From: alex Date: Mon, 29 Sep 2003 20:49:21 +0000 (+0000) Subject: - bug fixed: variable was used being uninitialized X-Git-Tag: v1_7_0_51~2^9~272 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1344f234b0e80670790002498f29f6ecb485fb99;p=fs%2Flustre-release.git - bug fixed: variable was used being uninitialized --- diff --git a/lustre/obdfilter/filter_io_26.c b/lustre/obdfilter/filter_io_26.c index 3b90827..e522962 100644 --- a/lustre/obdfilter/filter_io_26.c +++ b/lustre/obdfilter/filter_io_26.c @@ -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;