xfs: introduce xfs_rtalloc_defs.h
[deliverable/linux.git] / fs / xfs / xfs_types.h
index 69074ac20ac355eca41df5bba7e81a4047ea5de6..781772c6f192c4e4c9233cc684463041bf7b3650 100644 (file)
@@ -183,4 +183,14 @@ struct xfs_name {
  */
 typedef __uint32_t     xfs_dqid_t;
 
+/*
+ * Constants for bit manipulations.
+ */
+#define        XFS_NBBYLOG     3               /* log2(NBBY) */
+#define        XFS_WORDLOG     2               /* log2(sizeof(xfs_rtword_t)) */
+#define        XFS_NBWORDLOG   (XFS_NBBYLOG + XFS_WORDLOG)
+#define        XFS_NBWORD      (1 << XFS_NBWORDLOG)
+#define        XFS_WORDMASK    ((1 << XFS_WORDLOG) - 1)
+
+
 #endif /* __XFS_TYPES_H__ */
This page took 0.02371 seconds and 5 git commands to generate.