glock.h (018cbffe6819f6f8db20a0a3acd9bab9bfd667e4) glock.h (009d851837ab26cab18adda6169a813f70b0b21b)
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

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

175 return gl->gl_state == LM_ST_DEFERRED;
176}
177
178static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl)
179{
180 return gl->gl_state == LM_ST_SHARED;
181}
182
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

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

175 return gl->gl_state == LM_ST_DEFERRED;
176}
177
178static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl)
179{
180 return gl->gl_state == LM_ST_SHARED;
181}
182
183static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
184{
185 if (gl->gl_ops->go_flags & GLOF_ASPACE)
186 return (struct address_space *)(gl + 1);
187 return NULL;
188}
189
183int gfs2_glock_get(struct gfs2_sbd *sdp,
184 u64 number, const struct gfs2_glock_operations *glops,
185 int create, struct gfs2_glock **glp);
186void gfs2_glock_hold(struct gfs2_glock *gl);
187void gfs2_glock_put_nolock(struct gfs2_glock *gl);
188int gfs2_glock_put(struct gfs2_glock *gl);
189void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
190 struct gfs2_holder *gh);

--- 67 unchanged lines hidden ---
190int gfs2_glock_get(struct gfs2_sbd *sdp,
191 u64 number, const struct gfs2_glock_operations *glops,
192 int create, struct gfs2_glock **glp);
193void gfs2_glock_hold(struct gfs2_glock *gl);
194void gfs2_glock_put_nolock(struct gfs2_glock *gl);
195int gfs2_glock_put(struct gfs2_glock *gl);
196void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
197 struct gfs2_holder *gh);

--- 67 unchanged lines hidden ---