Przeglądaj źródła

xfs: move xfsagino_t to xfs_types.h

Untangle the header file includes a bit by moving the definition of
xfs_agino_t to xfs_types.h. This removes the dependency that xfs_ag.h has on
xfs_inum.h, meaning we don't need to include xfs_inum.h everywhere we include
xfs_ag.h.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Dave Chinner 13 lat temu
rodzic
commit
60a34607b2
51 zmienionych plików z 5 dodań i 54 usunięć
  1. 0 1
      fs/xfs/xfs_alloc.c
  2. 0 1
      fs/xfs/xfs_alloc_btree.c
  3. 0 1
      fs/xfs/xfs_aops.c
  4. 0 1
      fs/xfs/xfs_attr.c
  5. 0 1
      fs/xfs/xfs_attr_leaf.c
  6. 0 1
      fs/xfs/xfs_bmap_btree.c
  7. 0 1
      fs/xfs/xfs_btree.c
  8. 0 1
      fs/xfs/xfs_buf.c
  9. 0 1
      fs/xfs/xfs_buf_item.c
  10. 0 1
      fs/xfs/xfs_da_btree.c
  11. 0 1
      fs/xfs/xfs_dfrag.c
  12. 0 1
      fs/xfs/xfs_dir2_block.c
  13. 0 1
      fs/xfs/xfs_dir2_data.c
  14. 0 1
      fs/xfs/xfs_dir2_leaf.c
  15. 0 1
      fs/xfs/xfs_dir2_node.c
  16. 0 1
      fs/xfs/xfs_dir2_sf.c
  17. 0 1
      fs/xfs/xfs_discard.c
  18. 0 1
      fs/xfs/xfs_dquot.c
  19. 0 1
      fs/xfs/xfs_dquot_item.c
  20. 0 1
      fs/xfs/xfs_error.c
  21. 0 1
      fs/xfs/xfs_export.c
  22. 0 1
      fs/xfs/xfs_extfree_item.c
  23. 0 1
      fs/xfs/xfs_file.c
  24. 0 1
      fs/xfs/xfs_fsops.c
  25. 0 1
      fs/xfs/xfs_ialloc_btree.c
  26. 0 1
      fs/xfs/xfs_inode_item.c
  27. 0 5
      fs/xfs/xfs_inum.h
  28. 0 1
      fs/xfs/xfs_ioctl.c
  29. 0 1
      fs/xfs/xfs_ioctl32.c
  30. 0 1
      fs/xfs/xfs_iomap.c
  31. 0 1
      fs/xfs/xfs_iops.c
  32. 0 1
      fs/xfs/xfs_log.c
  33. 0 1
      fs/xfs/xfs_log_cil.c
  34. 0 1
      fs/xfs/xfs_message.c
  35. 0 1
      fs/xfs/xfs_qm.c
  36. 0 1
      fs/xfs/xfs_qm_bhv.c
  37. 0 1
      fs/xfs/xfs_qm_syscalls.c
  38. 0 1
      fs/xfs/xfs_quotaops.c
  39. 0 1
      fs/xfs/xfs_rename.c
  40. 0 1
      fs/xfs/xfs_rtalloc.c
  41. 0 1
      fs/xfs/xfs_rw.c
  42. 0 1
      fs/xfs/xfs_trace.c
  43. 0 1
      fs/xfs/xfs_trans.c
  44. 0 1
      fs/xfs/xfs_trans_ail.c
  45. 0 1
      fs/xfs/xfs_trans_buf.c
  46. 0 1
      fs/xfs/xfs_trans_dquot.c
  47. 0 1
      fs/xfs/xfs_trans_extfree.c
  48. 0 1
      fs/xfs/xfs_trans_inode.c
  49. 5 0
      fs/xfs/xfs_types.h
  50. 0 1
      fs/xfs/xfs_utils.c
  51. 0 1
      fs/xfs/xfs_vnodeops.c

+ 0 - 1
fs/xfs/xfs_alloc.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_alloc_btree.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_aops.c

@@ -18,7 +18,6 @@
 #include "xfs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"
 #include "xfs_trans.h"

+ 0 - 1
fs/xfs/xfs_attr.c

@@ -21,7 +21,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_attr_leaf.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_bmap_btree.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_btree.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_buf.c

@@ -35,7 +35,6 @@
 #include <linux/freezer.h>
 
 #include "xfs_sb.h"
-#include "xfs_inum.h"
 #include "xfs_log.h"
 #include "xfs_ag.h"
 #include "xfs_mount.h"

+ 0 - 1
fs/xfs/xfs_buf_item.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_da_btree.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dfrag.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dir2_block.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dir2_data.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dir2_leaf.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dir2_node.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dir2_sf.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_discard.c

@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_sb.h"
-#include "xfs_inum.h"
 #include "xfs_log.h"
 #include "xfs_ag.h"
 #include "xfs_mount.h"

+ 0 - 1
fs/xfs/xfs_dquot.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_dquot_item.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_error.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_export.c

@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_types.h"
-#include "xfs_inum.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"

+ 0 - 1
fs/xfs/xfs_extfree_item.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_buf_item.h"
 #include "xfs_sb.h"

+ 0 - 1
fs/xfs/xfs_file.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"
 #include "xfs_trans.h"

+ 0 - 1
fs/xfs/xfs_fsops.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_bit.h"
-#include "xfs_inum.h"
 #include "xfs_log.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"

+ 0 - 1
fs/xfs/xfs_ialloc_btree.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_inode_item.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 5
fs/xfs/xfs_inum.h

@@ -26,11 +26,6 @@
  * high agno_log-agblklog-inopblog bits - 0
  */
 
-typedef	__uint32_t	xfs_agino_t;	/* within allocation grp inode number */
-
-#define	NULLFSINO	((xfs_ino_t)-1)
-#define	NULLAGINO	((xfs_agino_t)-1)
-
 struct xfs_mount;
 
 #define	XFS_INO_MASK(k)			(__uint32_t)((1ULL << (k)) - 1)

+ 0 - 1
fs/xfs/xfs_ioctl.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_ioctl32.c

@@ -24,7 +24,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_iomap.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_iops.c

@@ -20,7 +20,6 @@
 #include "xfs_acl.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_log.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_log_cil.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_trans_priv.h"
 #include "xfs_log_priv.h"

+ 0 - 1
fs/xfs/xfs_message.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_qm.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_qm_bhv.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_qm_syscalls.c

@@ -22,7 +22,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_quotaops.c

@@ -17,7 +17,6 @@
  */
 #include "xfs.h"
 #include "xfs_sb.h"
-#include "xfs_inum.h"
 #include "xfs_log.h"
 #include "xfs_ag.h"
 #include "xfs_mount.h"

+ 0 - 1
fs/xfs/xfs_rename.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_rtalloc.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_rw.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trace.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans.c

@@ -21,7 +21,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans_ail.c

@@ -20,7 +20,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans_buf.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans_dquot.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans_extfree.c

@@ -19,7 +19,6 @@
 #include "xfs_fs.h"
 #include "xfs_types.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_trans_inode.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 5 - 0
fs/xfs/xfs_types.h

@@ -57,6 +57,7 @@ typedef __uint64_t __psunsigned_t;
 #endif	/* __KERNEL__ */
 
 typedef __uint32_t	xfs_agblock_t;	/* blockno in alloc. group */
+typedef	__uint32_t	xfs_agino_t;	/* inode # within allocation grp */
 typedef	__uint32_t	xfs_extlen_t;	/* extent length in blocks */
 typedef	__uint32_t	xfs_agnumber_t;	/* allocation group number */
 typedef __int32_t	xfs_extnum_t;	/* # of extents in a file */
@@ -101,6 +102,7 @@ typedef __uint64_t	xfs_fileoff_t;	/* block number in a file */
 typedef __int64_t	xfs_sfiloff_t;	/* signed block number in a file */
 typedef __uint64_t	xfs_filblks_t;	/* number of blocks in a file */
 
+
 /*
  * Null values for the types.
  */
@@ -120,6 +122,9 @@ typedef __uint64_t	xfs_filblks_t;	/* number of blocks in a file */
 
 #define NULLCOMMITLSN	((xfs_lsn_t)-1)
 
+#define	NULLFSINO	((xfs_ino_t)-1)
+#define	NULLAGINO	((xfs_agino_t)-1)
+
 /*
  * Max values for extlen, extnum, aextnum.
  */

+ 0 - 1
fs/xfs/xfs_utils.c

@@ -20,7 +20,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"

+ 0 - 1
fs/xfs/xfs_vnodeops.c

@@ -21,7 +21,6 @@
 #include "xfs_types.h"
 #include "xfs_bit.h"
 #include "xfs_log.h"
-#include "xfs_inum.h"
 #include "xfs_trans.h"
 #include "xfs_sb.h"
 #include "xfs_ag.h"