[Ocfs2-commits] mfasheh commits r1561 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Oct 11 18:58:14 CDT 2004
Author: mfasheh
Date: 2004-10-11 18:58:12 -0500 (Mon, 11 Oct 2004)
New Revision: 1561
Modified:
trunk/src/alloc.c
Log:
* fix a null pointer error in truncate.
Modified: trunk/src/alloc.c
===================================================================
--- trunk/src/alloc.c 2004-10-08 21:09:41 UTC (rev 1560)
+++ trunk/src/alloc.c 2004-10-11 23:58:12 UTC (rev 1561)
@@ -2007,7 +2007,6 @@
last_eb_bh = tc->tc_last_eb_bh;
tc->tc_last_eb_bh = NULL;
handle = tc->tc_handle;
- tc->tc_handle = NULL;
target_i_clusters = ocfs2_clusters_for_bytes(osb->sb,
inode->i_size);
@@ -2091,6 +2090,7 @@
goto start;
bail:
ocfs_commit_trans(handle);
+ tc->tc_handle = NULL;
if (last_eb_bh)
brelse(last_eb_bh);
More information about the Ocfs2-commits
mailing list