aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2008-12-16 18:49:16 -0500
committerMark Fasheh <mfasheh@suse.com>2009-04-03 14:39:14 -0400
commit96a6c64b5354b804b3ccfd1b31306565a01ebcb1 (patch)
treede8bde922d2e5fdb4d0698dc4169b57acd7e4b8b /fs/ocfs2
parent87d3d3f3931f3e0fca44fbb5c06ad45fc4dca9bc (diff)
ocfs2: Move struct recovery_map to a header file
Move the definition of struct recovery_map from journal.c to journal.h. This is preparation for the next patch. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/journal.c12
-rw-r--r--fs/ocfs2/journal.h11
2 files changed, 11 insertions, 12 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 57d7d25a2b9..4c8f3557fe9 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -76,18 +76,6 @@ static inline int ocfs2_wait_on_quotas(struct ocfs2_super *osb)
76 return __ocfs2_wait_on_mount(osb, 1); 76 return __ocfs2_wait_on_mount(osb, 1);
77} 77}
78 78
79
80
81/*
82 * The recovery_list is a simple linked list of node numbers to recover.
83 * It is protected by the recovery_lock.
84 */
85
86struct ocfs2_recovery_map {
87 unsigned int rm_used;
88 unsigned int *rm_entries;
89};
90
91int ocfs2_recovery_init(struct ocfs2_super *osb) 79int ocfs2_recovery_init(struct ocfs2_super *osb)
92{ 80{
93 struct ocfs2_recovery_map *rm; 81 struct ocfs2_recovery_map *rm;
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h
index 172850a9a12..21601ee3f25 100644
--- a/fs/ocfs2/journal.h
+++ b/fs/ocfs2/journal.h
@@ -38,6 +38,17 @@ enum ocfs2_journal_state {
38struct ocfs2_super; 38struct ocfs2_super;
39struct ocfs2_dinode; 39struct ocfs2_dinode;
40 40
41/*
42 * The recovery_list is a simple linked list of node numbers to recover.
43 * It is protected by the recovery_lock.
44 */
45
46struct ocfs2_recovery_map {
47 unsigned int rm_used;
48 unsigned int *rm_entries;
49};
50
51
41struct ocfs2_journal { 52struct ocfs2_journal {
42 enum ocfs2_journal_state j_state; /* Journals current state */ 53 enum ocfs2_journal_state j_state; /* Journals current state */
43 54