~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/gfs2/glock.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        int (*lm_mount) (struct gfs2_sbd *sdp, const char *fsname);
119
119
        void (*lm_unmount) (struct gfs2_sbd *sdp);
120
120
        void (*lm_withdraw) (struct gfs2_sbd *sdp);
121
 
        void (*lm_put_lock) (struct kmem_cache *cachep, struct gfs2_glock *gl);
 
121
        void (*lm_put_lock) (struct gfs2_glock *gl);
122
122
        int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state,
123
123
                        unsigned int flags);
124
124
        void (*lm_cancel) (struct gfs2_glock *gl);
174
174
                   int create, struct gfs2_glock **glp);
175
175
void gfs2_glock_hold(struct gfs2_glock *gl);
176
176
void gfs2_glock_put_nolock(struct gfs2_glock *gl);
177
 
int gfs2_glock_put(struct gfs2_glock *gl);
 
177
void gfs2_glock_put(struct gfs2_glock *gl);
178
178
void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
179
179
                      struct gfs2_holder *gh);
180
180
void gfs2_holder_reinit(unsigned int state, unsigned flags,
223
223
        return error;
224
224
}
225
225
 
226
 
/*  Lock Value Block functions  */
227
 
 
228
 
int gfs2_lvb_hold(struct gfs2_glock *gl);
229
 
void gfs2_lvb_unhold(struct gfs2_glock *gl);
230
 
 
231
 
void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state);
232
 
void gfs2_glock_complete(struct gfs2_glock *gl, int ret);
233
 
void gfs2_reclaim_glock(struct gfs2_sbd *sdp);
234
 
void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
235
 
void gfs2_glock_finish_truncate(struct gfs2_inode *ip);
236
 
void gfs2_glock_thaw(struct gfs2_sbd *sdp);
237
 
 
238
 
int __init gfs2_glock_init(void);
239
 
void gfs2_glock_exit(void);
240
 
 
241
 
int gfs2_create_debugfs_file(struct gfs2_sbd *sdp);
242
 
void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp);
243
 
int gfs2_register_debugfs(void);
244
 
void gfs2_unregister_debugfs(void);
 
226
extern void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state);
 
227
extern void gfs2_glock_complete(struct gfs2_glock *gl, int ret);
 
228
extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
 
229
extern void gfs2_glock_finish_truncate(struct gfs2_inode *ip);
 
230
extern void gfs2_glock_thaw(struct gfs2_sbd *sdp);
 
231
extern void gfs2_glock_add_to_lru(struct gfs2_glock *gl);
 
232
extern void gfs2_glock_free(struct gfs2_glock *gl);
 
233
 
 
234
extern int __init gfs2_glock_init(void);
 
235
extern void gfs2_glock_exit(void);
 
236
 
 
237
extern int gfs2_create_debugfs_file(struct gfs2_sbd *sdp);
 
238
extern void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp);
 
239
extern int gfs2_register_debugfs(void);
 
240
extern void gfs2_unregister_debugfs(void);
245
241
 
246
242
extern const struct lm_lockops gfs2_dlm_ops;
247
243