]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gfs2: Move gfs2_log_pointers_init
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 16 May 2025 03:24:22 +0000 (05:24 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 22 May 2025 07:12:27 +0000 (09:12 +0200)
Move gfs2_log_pointers_init to recovery.c: there is no need for inlining
this function.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.h
fs/gfs2/recovery.c
fs/gfs2/recovery.h

index c27b05099c1e403ed18f9049fb13a9501a58d320..fc30ebdad83ac9ec21bd24021623473168554e45 100644 (file)
@@ -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);
index 9080f1b5f434d924d8e4508821b5c1066b10b433..7776d2092b9b5c5810ec752f656b6e5d12ea21c1 100644 (file)
@@ -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;
+}
index 6a0fd42e1120fc1b57e107c18977c21e54b6ec4a..630ac490948d8bdfd26619af1e23157b0c47f662 100644 (file)
@@ -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__ */