From: Andreas Gruenbacher Date: Fri, 16 May 2025 03:24:22 +0000 (+0200) Subject: gfs2: Move gfs2_log_pointers_init X-Git-Tag: v6.16-rc1~212^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=703a4af35647f0f7f77e8942053251d71d221170;p=thirdparty%2Fkernel%2Flinux.git 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: Andreas Gruenbacher --- diff --git a/fs/gfs2/log.h b/fs/gfs2/log.h index c27b05099c1e4..fc30ebdad83ac 100644 --- a/fs/gfs2/log.h +++ b/fs/gfs2/log.h @@ -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); diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c index 9080f1b5f434d..7776d2092b9b5 100644 --- a/fs/gfs2/recovery.c +++ b/fs/gfs2/recovery.c @@ -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; +} diff --git a/fs/gfs2/recovery.h b/fs/gfs2/recovery.h index 6a0fd42e1120f..630ac490948d8 100644 --- a/fs/gfs2/recovery.h +++ b/fs/gfs2/recovery.h @@ -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__ */