Commit 703a4af3 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Move gfs2_log_pointers_init



Move gfs2_log_pointers_init to recovery.c: there is no need for inlining
this function.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 91793971
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -44,17 +44,6 @@ __releases(&sdp->sd_log_lock)
	spin_unlock(&sdp->sd_log_lock);
}

static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp,
					  unsigned int value)
{
	if (++value == sdp->sd_jdesc->jd_blocks) {
		value = 0;
	}
	sdp->sd_log_tail = value;
	sdp->sd_log_flush_tail = value;
	sdp->sd_log_head = value;
}

static inline void gfs2_ordered_add_inode(struct gfs2_inode *ip)
{
	struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
+9 −0
Original line number Diff line number Diff line
@@ -581,3 +581,12 @@ int gfs2_recover_journal(struct gfs2_jdesc *jd, bool wait)
	return wait ? jd->jd_recover_error : 0;
}

void gfs2_log_pointers_init(struct gfs2_sbd *sdp, unsigned int value)
{
	if (++value == sdp->sd_jdesc->jd_blocks) {
		value = 0;
	}
	sdp->sd_log_tail = value;
	sdp->sd_log_flush_tail = value;
	sdp->sd_log_head = value;
}
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ void gfs2_recover_func(struct work_struct *work);
int __get_log_header(struct gfs2_sbd *sdp,
		     const struct gfs2_log_header *lh, unsigned int blkno,
		     struct gfs2_log_header_host *head);
void gfs2_log_pointers_init(struct gfs2_sbd *sdp, unsigned int value);

#endif /* __RECOVERY_DOT_H__ */