ext2: replace inode uid,gid,mode init with helper
[safe/jmp/linux-2.6] / fs / ocfs2 / super.h
index c564177..40c7de0 100644 (file)
@@ -33,12 +33,23 @@ int ocfs2_publish_get_mount_state(struct ocfs2_super *osb,
 
 void __ocfs2_error(struct super_block *sb,
                   const char *function,
-                  const char *fmt, ...);
+                  const char *fmt, ...)
+       __attribute__ ((format (printf, 3, 4)));
+
 #define ocfs2_error(sb, fmt, args...) __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##args)
 
 void __ocfs2_abort(struct super_block *sb,
                   const char *function,
-                  const char *fmt, ...);
+                  const char *fmt, ...)
+       __attribute__ ((format (printf, 3, 4)));
+
 #define ocfs2_abort(sb, fmt, args...) __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##args)
 
+/*
+ * Void signal blockers, because in-kernel sigprocmask() only fails
+ * when SIG_* is wrong.
+ */
+void ocfs2_block_signals(sigset_t *oldset);
+void ocfs2_unblock_signals(sigset_t *oldset);
+
 #endif /* OCFS2_SUPER_H */