[Ocfs2-commits] mfasheh commits r1521 - branches/dlm-changes/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Sep 29 19:44:55 CDT 2004
Author: mfasheh
Date: 2004-09-29 19:44:53 -0500 (Wed, 29 Sep 2004)
New Revision: 1521
Modified:
branches/dlm-changes/src/alloc.c
Log:
* properly calculate bits_wanted in the claim functions
Modified: branches/dlm-changes/src/alloc.c
===================================================================
--- branches/dlm-changes/src/alloc.c 2004-09-30 00:38:46 UTC (rev 1520)
+++ branches/dlm-changes/src/alloc.c 2004-09-30 00:44:53 UTC (rev 1521)
@@ -2941,7 +2941,7 @@
OCFS_ASSERT(ac->ac_which == OCFS_AC_USE_MAIN);
bitmap_inode = ac->ac_inode;
- bits_wanted = ac->ac_bits_wanted;
+ bits_wanted = ac->ac_bits_wanted - ac->ac_bits_given;
bh = ac->ac_bh;
fe = (ocfs2_dinode *) bh->b_data;
@@ -3024,7 +3024,7 @@
LOG_ENTRY();
OCFS_ASSERT(ac->ac_which == OCFS_AC_USE_LOCAL);
- bits_wanted = ac->ac_bits_wanted;
+ bits_wanted = ac->ac_bits_wanted - ac->ac_bits_given;
local_alloc_inode = ac->ac_inode;
alloc = (ocfs2_dinode *) osb->local_alloc_bh->b_data;
More information about the Ocfs2-commits
mailing list