summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_types.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-08-12 20:49:29 +1000
committerBen Myers <bpm@sgi.com>2013-08-12 16:13:10 -0500
commitc7298202e5df6fad66c7c8146bf2ed55ba07aff0 (patch)
treeb2aa33f8869ac927af3aa4185cd4fee4f6ac788d /fs/xfs/xfs_types.h
parent2a3c0acc351baf1e5e584d8d0692f41d5067582c (diff)
downloadlinux-c7298202e5df6fad66c7c8146bf2ed55ba07aff0.tar.gz
linux-c7298202e5df6fad66c7c8146bf2ed55ba07aff0.tar.bz2
linux-c7298202e5df6fad66c7c8146bf2ed55ba07aff0.zip
xfs: introduce xfs_rtalloc_defs.h
There are quite a few realtime device definitions shared with userspace. Move them from xfs_rtalloc.h to xfs_rt_alloc_defs.h so we don't need to share xfs_rtalloc.h with userspace anymore. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_types.h')
-rw-r--r--fs/xfs/xfs_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/xfs/xfs_types.h b/fs/xfs/xfs_types.h
index 69074ac20ac3..781772c6f192 100644
--- a/fs/xfs/xfs_types.h
+++ b/fs/xfs/xfs_types.h
@@ -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__ */