diff options
Diffstat (limited to 'fs/gfs2/rgrp.h')
-rw-r--r-- | fs/gfs2/rgrp.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/fs/gfs2/rgrp.h b/fs/gfs2/rgrp.h index 59b950f43ccf..0439fca18f08 100644 --- a/fs/gfs2/rgrp.h +++ b/fs/gfs2/rgrp.h | |||
@@ -18,13 +18,13 @@ struct gfs2_holder; | |||
18 | 18 | ||
19 | extern void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd); | 19 | extern void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd); |
20 | 20 | ||
21 | struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk); | 21 | extern struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk); |
22 | struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp); | 22 | extern struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp); |
23 | struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd); | 23 | extern struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd); |
24 | 24 | ||
25 | extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp); | 25 | extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp); |
26 | extern int gfs2_rindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ri_gh); | 26 | extern int gfs2_rindex_update(struct gfs2_sbd *sdp); |
27 | 27 | extern void gfs2_free_clones(struct gfs2_rgrpd *rgd); | |
28 | extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh); | 28 | extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh); |
29 | extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh); | 29 | extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh); |
30 | 30 | ||
@@ -36,16 +36,13 @@ static inline void gfs2_alloc_put(struct gfs2_inode *ip) | |||
36 | ip->i_alloc = NULL; | 36 | ip->i_alloc = NULL; |
37 | } | 37 | } |
38 | 38 | ||
39 | extern int gfs2_inplace_reserve_i(struct gfs2_inode *ip, int hold_rindex, | 39 | extern int gfs2_inplace_reserve_i(struct gfs2_inode *ip, |
40 | char *file, unsigned int line); | 40 | char *file, unsigned int line); |
41 | #define gfs2_inplace_reserve(ip) \ | 41 | #define gfs2_inplace_reserve(ip) \ |
42 | gfs2_inplace_reserve_i((ip), 1, __FILE__, __LINE__) | 42 | gfs2_inplace_reserve_i((ip), __FILE__, __LINE__) |
43 | #define gfs2_inplace_reserve_ri(ip) \ | ||
44 | gfs2_inplace_reserve_i((ip), 0, __FILE__, __LINE__) | ||
45 | 43 | ||
46 | extern void gfs2_inplace_release(struct gfs2_inode *ip); | 44 | extern void gfs2_inplace_release(struct gfs2_inode *ip); |
47 | 45 | ||
48 | extern int gfs2_ri_update(struct gfs2_inode *ip); | ||
49 | extern int gfs2_alloc_block(struct gfs2_inode *ip, u64 *bn, unsigned int *n); | 46 | extern int gfs2_alloc_block(struct gfs2_inode *ip, u64 *bn, unsigned int *n); |
50 | extern int gfs2_alloc_di(struct gfs2_inode *ip, u64 *bn, u64 *generation); | 47 | extern int gfs2_alloc_di(struct gfs2_inode *ip, u64 *bn, u64 *generation); |
51 | 48 | ||