[Ocfs2-commits] mfasheh commits r1493 - branches/dlm-changes/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Sep 24 19:47:29 CDT 2004
Author: mfasheh
Date: 2004-09-24 19:47:27 -0500 (Fri, 24 Sep 2004)
New Revision: 1493
Modified:
branches/dlm-changes/src/suballoc.c
Log:
* add an 'inspired by' line
* cleanup some returns
Modified: branches/dlm-changes/src/suballoc.c
===================================================================
--- branches/dlm-changes/src/suballoc.c 2004-09-25 00:44:05 UTC (rev 1492)
+++ branches/dlm-changes/src/suballoc.c 2004-09-25 00:47:27 UTC (rev 1493)
@@ -4,6 +4,7 @@
* suballoc.c
*
* metadata alloc and free
+ * Inspired by ext3 block groups.
*
* Copyright (C) 2002, 2004 Oracle. All rights reserved.
*
@@ -127,7 +128,7 @@
bail:
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
static inline u16 ocfs2_find_smallest_chain(ocfs2_chain_list *cl)
@@ -187,7 +188,7 @@
}
bail:
LOG_EXIT();
- return(bhs);
+ return bhs;
}
static void ocfs_block_group_zero_wait(ocfs_super *osb,
@@ -206,8 +207,6 @@
kfree(bhs);
return;
}
-
-
#endif
/*
* We expect the block group allocator to already be locked.
@@ -407,7 +406,7 @@
brelse(bh);
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
int ocfs_reserve_new_metadata(ocfs_super *osb,
@@ -462,7 +461,7 @@
iput(inode);
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
int ocfs_reserve_new_inode(ocfs_super *osb,
@@ -509,7 +508,7 @@
iput(alloc_inode);
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
static int ocfs_block_group_find_clear_bits(ocfs_super *osb,
@@ -564,7 +563,7 @@
LOG_ERROR_STATUS(status);
}
- return(status);
+ return status;
}
static inline int ocfs_block_group_set_bits(ocfs_journal_handle *handle,
@@ -607,7 +606,7 @@
bail:
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
/* find the one with the most empty bits */
@@ -703,12 +702,12 @@
}
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
static inline int ocfs_block_group_reasonably_empty(ocfs2_group_desc *bg)
{
- return(bg->bg_free_bits_count >= (bg->bg_bits / 2));
+ return bg->bg_free_bits_count >= (bg->bg_bits / 2);
}
#endif
/* will give out up to bits_wanted contiguous bits. */
@@ -870,7 +869,7 @@
brelse(prev_group_bh);
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
int ocfs_claim_metadata(ocfs_super *osb,
@@ -906,7 +905,7 @@
status = 0;
bail:
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
int ocfs_claim_new_inode(ocfs_super *osb,
@@ -947,7 +946,7 @@
status = 0;
bail:
LOG_EXIT_STATUS(status);
- return(status);
+ return status;
}
#if 0
More information about the Ocfs2-commits
mailing list