VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Bob Peterson <rpeterso@redhat.com> 2020-12-22 14:43:27 -0600 committer: Andreas Gruenbacher <agruenba@redhat.com> 2020-12-23 00:54:13 +0100 commit: c77b52c0a137994ad796f44544c802b0b766e496 parent: 7703f46f2cafa57b9e5e8f4d6ff3dd8dcf0c1656
Commit Summary:
gfs2: Add common helper for holding and releasing the freeze glock
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/util.h b/fs/gfs2/util.h
index a4443dd8a94b..69e1a0ae5a4d 100644
--- a/fs/gfs2/util.h
+++ b/fs/gfs2/util.h
@@ -149,6 +149,9 @@ int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function,
 
 extern int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
 			       bool verbose);
+extern int gfs2_freeze_lock(struct gfs2_sbd *sdp,
+			    struct gfs2_holder *freeze_gh, int caller_flags);
+extern void gfs2_freeze_unlock(struct gfs2_holder *freeze_gh);
 
 #define gfs2_io_error(sdp) \
 gfs2_io_error_i((sdp), __func__, __FILE__, __LINE__)