[Ocfs2-commits] mfasheh commits r774 - in trunk/src: . inc
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Mar 12 13:09:09 CST 2004
Author: mfasheh
Date: 2004-03-12 13:09:07 -0600 (Fri, 12 Mar 2004)
New Revision: 774
Modified:
trunk/src/inc/proto.h
trunk/src/journal.c
Log:
Make ocfs_commit_cache a static function, as it's only ever access from journal.c
Modified: trunk/src/inc/proto.h
===================================================================
--- trunk/src/inc/proto.h 2004-03-12 02:08:41 UTC (rev 773)
+++ trunk/src/inc/proto.h 2004-03-12 19:09:07 UTC (rev 774)
@@ -97,7 +97,6 @@
int ocfs_submit_vol_metadata(ocfs_super *osb, ocfs_offset_map *map_buf, __u32 num);
-int ocfs_commit_cache (ocfs_super * osb, bool data_flush);
int ocfs_commit_thread(void *arg);
void ocfs_init_sem (ocfs_sem * res);
Modified: trunk/src/journal.c
===================================================================
--- trunk/src/journal.c 2004-03-12 02:08:41 UTC (rev 773)
+++ trunk/src/journal.c 2004-03-12 19:09:07 UTC (rev 774)
@@ -41,6 +41,7 @@
#ifdef USE_JOURNAL_CREATE_REPLACEMENT
static int ocfs_replacement_journal_create(journal_t *journal);
#endif
+static int ocfs_commit_cache (ocfs_super * osb, bool data_flush);
/* DO NOT EVER CALL THIS FUNCTION WITH A LOCKED BUFFER HEAD! */
ocfs_journal_handle * ocfs_start_trans(ocfs_super *osb, int max_buffs)
@@ -1829,7 +1830,7 @@
*
* In any case, it will release the trans lock for you.
*/
-int ocfs_commit_cache (ocfs_super * osb, bool data_flush)
+static int ocfs_commit_cache (ocfs_super * osb, bool data_flush)
{
int status = 0, tmpstat;
ocfs_journal * journal = NULL;
More information about the Ocfs2-commits
mailing list