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> 2019-11-14 09:52:15 -0500 committer: Andreas Gruenbacher <agruenba@redhat.com> 2019-11-14 19:46:18 +0100 commit: eb43e660c094029fc1165e2641ce06c153129bdd parent: fe5e7ba11fcf1d75af8173836309e8562aefedef
Commit Summary:
gfs2: Introduce function gfs2_withdrawn
Diffstat:
1 file changed, 9 insertions, 0 deletions
diff --git a/fs/gfs2/util.h b/fs/gfs2/util.h
index 4b68b2c1fe56..f2702bc9837c 100644
--- a/fs/gfs2/util.h
+++ b/fs/gfs2/util.h
@@ -164,6 +164,15 @@ static inline unsigned int gfs2_tune_get_i(struct gfs2_tune *gt,
 	return x;
 }
 
+/**
+ * gfs2_withdrawn - test whether the file system is withdrawing or withdrawn
+ * @sdp: the superblock
+ */
+static inline bool gfs2_withdrawn(struct gfs2_sbd *sdp)
+{
+	return test_bit(SDF_WITHDRAWN, &sdp->sd_flags);
+}
+
 #define gfs2_tune_get(sdp, field) \
 gfs2_tune_get_i(&(sdp)->sd_tune, &(sdp)->sd_tune.field)