glock.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) glock.h (ea4e61c7f46d33fdf17580a925e47cc83570d658)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
5 */
6
7#ifndef __GLOCK_DOT_H__
8#define __GLOCK_DOT_H__

--- 191 unchanged lines hidden (view full) ---

200 struct gfs2_holder *gh);
201extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs);
202extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
203extern void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
204 bool fsid);
205#define GLOCK_BUG_ON(gl,x) do { if (unlikely(x)) { \
206 gfs2_dump_glock(NULL, gl, true); \
207 BUG(); } } while(0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
5 */
6
7#ifndef __GLOCK_DOT_H__
8#define __GLOCK_DOT_H__

--- 191 unchanged lines hidden (view full) ---

200 struct gfs2_holder *gh);
201extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs);
202extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
203extern void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
204 bool fsid);
205#define GLOCK_BUG_ON(gl,x) do { if (unlikely(x)) { \
206 gfs2_dump_glock(NULL, gl, true); \
207 BUG(); } } while(0)
208#define gfs2_glock_assert_warn(gl, x) do { if (unlikely(!(x))) { \
209 gfs2_dump_glock(NULL, gl, true); \
210 gfs2_assert_warn((gl)->gl_name.ln_sbd, (x)); } } \
211 while (0)
212#define gfs2_glock_assert_withdraw(gl, x) do { if (unlikely(!(x))) { \
213 gfs2_dump_glock(NULL, gl, true); \
214 gfs2_assert_withdraw((gl)->gl_name.ln_sbd, (x)); } } \
215 while (0)
216
208extern __printf(2, 3)
209void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...);
210
211/**
212 * gfs2_glock_nq_init - initialize a holder and enqueue it on a glock
213 * @gl: the glock
214 * @state: the state we're requesting
215 * @flags: the modifier flags

--- 94 unchanged lines hidden ---
217extern __printf(2, 3)
218void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...);
219
220/**
221 * gfs2_glock_nq_init - initialize a holder and enqueue it on a glock
222 * @gl: the glock
223 * @state: the state we're requesting
224 * @flags: the modifier flags

--- 94 unchanged lines hidden ---