xfs: clean up xfs_bit.h includes
authorDave Chinner <dchinner@redhat.com>
Mon, 23 Apr 2012 05:59:04 +0000 (15:59 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:21:00 +0000 (16:21 -0500)
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>
28 files changed:
fs/xfs/xfs_alloc_btree.c
fs/xfs/xfs_aops.c
fs/xfs/xfs_dfrag.c
fs/xfs/xfs_dir2.c
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_file.c
fs/xfs/xfs_fsops.c
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc.h
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl32.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_itable.c
fs/xfs/xfs_log.c
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_super.c
fs/xfs/xfs_sync.c
fs/xfs/xfs_trace.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans_buf.c
fs/xfs/xfs_trans_dquot.c
fs/xfs/xfs_trans_inode.c
fs/xfs/xfs_utils.c

index 68ebabc388c6adcc03270411701bfb3c44b40fcc..f1647caace8fe66eeda2bd51cf5e679028d7b50e 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index f03c9b401ce534f5d2d2409d8a92bb1c3a566acb..ae31c313a79ef6f0f53155a9b83877c6e56fc05a 100644 (file)
@@ -16,7 +16,6 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 #include "xfs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"
index f39205f5c772b3c3065b0ba33600c5acc12fef48..e00de08dc8aca858f8715691c2e0d20046194104 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index a2e27010c7fb7a6bec8f8dca69204bcf7f5fbcb7..67a250c36d414d3be83a50f4acb51f8069f147f4 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index 9610e52e5b4bfed7d2b8c88263bddbd0367ecb08..57aa4b03720cb7440acef44a920d18f81955ba72 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 415e97add43935d5899f54676c9839e5994b71cb..51fc2cf07d5e42633f7a4273c837fb15bfe430ed 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"
index 537c2aeb1ad25a0546f3f10f5b4d7d9be1e69876..75593d9bd70f37d00271db70d24c6bbb74b3ef6b 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index d094a23e1030e3d227b1e5ea80dcc37507745251..177a21a7ac490983a5a5ca424ff07ff75bb61000 100644 (file)
@@ -609,6 +609,13 @@ xfs_ialloc_get_rec(
 /*
  * Visible inode allocation functions.
  */
+/*
+ * Find a free (set) bit in the inode bitmask.
+ */
+static inline int xfs_ialloc_find_free(xfs_inofree_t *fp)
+{
+       return xfs_lowbit64(*fp);
+}
 
 /*
  * Allocate an inode on disk.
index 666a037398d6a1e530ae9e9af1b946043a13772c..65ac57c8063c78cc066f996db1ddbcce7c6e8a9f 100644 (file)
@@ -46,15 +46,6 @@ xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o)
                (xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog));
 }
 
-/*
- * Find a free (set) bit in the inode bitmask.
- */
-static inline int xfs_ialloc_find_free(xfs_inofree_t *fp)
-{
-       return xfs_lowbit64(*fp);
-}
-
-
 /*
  * Allocate an inode on disk.
  * Mode is used to tell whether the new inode will need space, and whether
index ab89ca7fdb95a9272e13951006daa6f956b80454..7f81397eeec26d5445c067db9ac6d44c0e34c0da 100644 (file)
@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_acl.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index c6fb5f0577b8d39cb49cd64c41b18104f862e571..72ec1a4cc477cd01c1c598607e40dd223e4ab85f 100644 (file)
@@ -20,7 +20,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index a8d5fddc7200241d046264df97d75fdbb0c84090..6cdbf90c6f7b50116534c6cb7de2d1ff91816f91 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 706029fd1a7e0593278d119c340159757794c674..3a05a41b5d76b8bfbbc6399d287f78b56e06ccc4 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index c79fa5f1f9d434ed74a2a447f66044fddd5b7d3a..c4f2da0d2bf5ef1ec4f04aafe1a58034d5255375 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/uaccess.h>
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index d3a4a8d10440ebcb15cdbe149472af6ead1668f3..69c6e251c012c649530e70a5b99196541426b30c 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index e7a6660e19fb234240a19bb63db78eae78e71e18..1a25fd80279882bae3c0a11176ec61b35ac830db 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_acl.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index acc2bf264dab7341058ef23c15ed8c1417183d1e..eff577a9b67ffe0d47f7d1834b5776d76122ba40 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index 97e489b90f299cd29aeb06688dbfad02cdfb0f8f..9b10a15295a2a9bfa1503850b247cea4ea5a4ec2 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 601ccf02618abfe21882e9856051e7f0294f5a32..7d6197c5849381e8d8f0f0e6fbef91f332f4e108 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_trans_priv.h"
index cd705296c3b70d3af3240a34ae417c756cd62aea..6b39115bf14563b39bada4ed5084fffa22a9262d 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 49197e24d8db2fbce262c6f00f8f9d3ca9fd7c7f..2fcfd5b0b046830f4453298e5fb771de366b974f 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "xfs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index 24180cd862640f5e666c727e09a5043db7653a30..d2422683ed766361f6a6691ab71a418b7bf692df 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_inum.h"
 #include "xfs_trans.h"
index 0115378b444e6aadb0fa4e28a8583632611501d7..624bedd813578e0985c8de1147db78339a2ac359 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index f674855c8dc9853d644ae99d300a9a5dbd86e569..cdf896fcbfa43810c83bfbc7a99f84f118a4d75d 100644 (file)
@@ -19,7 +19,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 743d7a5835f381a9b15f8df999460e790e9a9347..d250afaeb70c202eb7780d74331565cbde6f6982 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 72236b0d07315e03156022a43ad8019f382208ab..bcb60542fcf18bdbcfef1633dcbaac355485e66d 100644 (file)
@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_fs.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 82fd5206f1e8a2fdc39bd29bab4271c24360d9e5..d2eee20d5f5b799cdaff6be9f11a33706dced0ee 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
index 073223176566f1d0720b238e8df3639c704ef2cd..4e5b9ad5cb97c733332f7d95b321949f1b168996 100644 (file)
@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
-#include "xfs_bit.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"