aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-10-14 18:17:56 -0400
committerBen Myers <bpm@sgi.com>2013-10-23 18:16:32 -0400
commitc963c6193a5adaec58044e238ef23516d04e5a74 (patch)
tree0e785abb7cafe10276ee8d46ecfbde5b409ba63f /fs/xfs/xfs_rtalloc.h
parenta4fbe6ab1e7abecf42b75e9c73701ed33b4ab03b (diff)
xfs: split xfs_rtalloc.c for userspace sanity
xfs_rtalloc.c is partially shared with userspace. Split the file up into two parts - one that is kernel private and the other which is wholly shared with userspace. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.h')
-rw-r--r--fs/xfs/xfs_rtalloc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/xfs/xfs_rtalloc.h b/fs/xfs/xfs_rtalloc.h
index b2a1a24c0e2f..752b63d10300 100644
--- a/fs/xfs/xfs_rtalloc.h
+++ b/fs/xfs/xfs_rtalloc.h
@@ -95,6 +95,30 @@ xfs_growfs_rt(
95 struct xfs_mount *mp, /* file system mount structure */ 95 struct xfs_mount *mp, /* file system mount structure */
96 xfs_growfs_rt_t *in); /* user supplied growfs struct */ 96 xfs_growfs_rt_t *in); /* user supplied growfs struct */
97 97
98/*
99 * From xfs_rtbitmap.c
100 */
101int xfs_rtbuf_get(struct xfs_mount *mp, struct xfs_trans *tp,
102 xfs_rtblock_t block, int issum, struct xfs_buf **bpp);
103int xfs_rtcheck_range(struct xfs_mount *mp, struct xfs_trans *tp,
104 xfs_rtblock_t start, xfs_extlen_t len, int val,
105 xfs_rtblock_t *new, int *stat);
106int xfs_rtfind_back(struct xfs_mount *mp, struct xfs_trans *tp,
107 xfs_rtblock_t start, xfs_rtblock_t limit,
108 xfs_rtblock_t *rtblock);
109int xfs_rtfind_forw(struct xfs_mount *mp, struct xfs_trans *tp,
110 xfs_rtblock_t start, xfs_rtblock_t limit,
111 xfs_rtblock_t *rtblock);
112int xfs_rtmodify_range(struct xfs_mount *mp, struct xfs_trans *tp,
113 xfs_rtblock_t start, xfs_extlen_t len, int val);
114int xfs_rtmodify_summary(struct xfs_mount *mp, struct xfs_trans *tp, int log,
115 xfs_rtblock_t bbno, int delta, xfs_buf_t **rbpp,
116 xfs_fsblock_t *rsb);
117int xfs_rtfree_range(struct xfs_mount *mp, struct xfs_trans *tp,
118 xfs_rtblock_t start, xfs_extlen_t len,
119 struct xfs_buf **rbpp, xfs_fsblock_t *rsb);
120
121
98#else 122#else
99# define xfs_rtallocate_extent(t,b,min,max,l,a,f,p,rb) (ENOSYS) 123# define xfs_rtallocate_extent(t,b,min,max,l,a,f,p,rb) (ENOSYS)
100# define xfs_rtfree_extent(t,b,l) (ENOSYS) 124# define xfs_rtfree_extent(t,b,l) (ENOSYS)