Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96a6c64b authored by Sunil Mushran's avatar Sunil Mushran Committed by Mark Fasheh
Browse files

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: default avatarSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 87d3d3f3
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -76,18 +76,6 @@ static inline int ocfs2_wait_on_quotas(struct ocfs2_super *osb)
	return __ocfs2_wait_on_mount(osb, 1);
	return __ocfs2_wait_on_mount(osb, 1);
}
}




/*
 * The recovery_list is a simple linked list of node numbers to recover.
 * It is protected by the recovery_lock.
 */

struct ocfs2_recovery_map {
	unsigned int rm_used;
	unsigned int *rm_entries;
};

int ocfs2_recovery_init(struct ocfs2_super *osb)
int ocfs2_recovery_init(struct ocfs2_super *osb)
{
{
	struct ocfs2_recovery_map *rm;
	struct ocfs2_recovery_map *rm;
+11 −0
Original line number Original line Diff line number Diff line
@@ -38,6 +38,17 @@ enum ocfs2_journal_state {
struct ocfs2_super;
struct ocfs2_super;
struct ocfs2_dinode;
struct ocfs2_dinode;


/*
 * The recovery_list is a simple linked list of node numbers to recover.
 * It is protected by the recovery_lock.
 */

struct ocfs2_recovery_map {
	unsigned int rm_used;
	unsigned int *rm_entries;
};


struct ocfs2_journal {
struct ocfs2_journal {
	enum ocfs2_journal_state   j_state;    /* Journals current state   */
	enum ocfs2_journal_state   j_state;    /* Journals current state   */