aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-04-23 01:59:04 -0400
committerBen Myers <bpm@sgi.com>2012-05-14 17:21:00 -0400
commitad1e95c54eb3980ab2b4683fba29ad0ef954ec51 (patch)
tree1ba9b690080cc003e572c2ef0e99c3af228de17e /fs/xfs/xfs_ialloc.h
parent2af51f3a4ef93945d20ff27ab28c5c68b5a21efc (diff)
xfs: clean up xfs_bit.h includes
With the removal of xfs_rw.h and other changes over time, xfs_bit.h is being included in many files that don't actually need it. Clean up the includes as necessary. Also move the only-used-once xfs_ialloc_find_free() static inline function out of a header file that is widely included to reduce the number of needless dependencies on xfs_bit.h. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc.h')
-rw-r--r--fs/xfs/xfs_ialloc.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/xfs/xfs_ialloc.h b/fs/xfs/xfs_ialloc.h
index 666a037398d6..65ac57c8063c 100644
--- a/fs/xfs/xfs_ialloc.h
+++ b/fs/xfs/xfs_ialloc.h
@@ -47,15 +47,6 @@ xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o)
47} 47}
48 48
49/* 49/*
50 * Find a free (set) bit in the inode bitmask.
51 */
52static inline int xfs_ialloc_find_free(xfs_inofree_t *fp)
53{
54 return xfs_lowbit64(*fp);
55}
56
57
58/*
59 * Allocate an inode on disk. 50 * Allocate an inode on disk.
60 * Mode is used to tell whether the new inode will need space, and whether 51 * Mode is used to tell whether the new inode will need space, and whether
61 * it is a directory. 52 * it is a directory.