[GFS2] Fix a ref count bug and other clean ups
[powerpc.git] / fs / gfs2 / unlinked.h
1 /*
2  * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
3  * Copyright (C) 2004-2005 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 v.2.
8  */
9
10 #ifndef __UNLINKED_DOT_H__
11 #define __UNLINKED_DOT_H__
12
13 int gfs2_unlinked_get(struct gfs2_sbd *sdp, struct gfs2_unlinked **ul);
14 void gfs2_unlinked_put(struct gfs2_sbd *sdp, struct gfs2_unlinked *ul);
15
16 int gfs2_unlinked_ondisk_add(struct gfs2_sbd *sdp, struct gfs2_unlinked *ul);
17 int gfs2_unlinked_ondisk_munge(struct gfs2_sbd *sdp, struct gfs2_unlinked *ul);
18 int gfs2_unlinked_ondisk_rm(struct gfs2_sbd *sdp, struct gfs2_unlinked *ul);
19
20 int gfs2_unlinked_dealloc(struct gfs2_sbd *sdp);
21
22 int gfs2_unlinked_init(struct gfs2_sbd *sdp);
23 void gfs2_unlinked_cleanup(struct gfs2_sbd *sdp);
24
25 #endif /* __UNLINKED_DOT_H__ */