summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_linux.h
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2014-11-28 14:52:16 +1100
committerDave Chinner <david@fromorbit.com>2014-11-28 14:52:16 +1100
commit216875a594e0b4fc72830e3690b8fbe7430738e2 (patch)
tree4658b9b572333cd8a730a1104ad452764f0e69fe /fs/xfs/xfs_linux.h
parent4bd47c1bf4a64225a855ed77e259eeb37944ba33 (diff)
parent508b6b3b73888e3296ff638b32f15327e63b7b42 (diff)
downloadlinux-216875a594e0b4fc72830e3690b8fbe7430738e2.tar.bz2
Merge branch 'xfs-consolidate-format-defs' into for-next
Diffstat (limited to 'fs/xfs/xfs_linux.h')
-rw-r--r--fs/xfs/xfs_linux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h
index 6a51619d8690..c31d2c2eadc4 100644
--- a/fs/xfs/xfs_linux.h
+++ b/fs/xfs/xfs_linux.h
@@ -384,4 +384,10 @@ static inline __uint64_t howmany_64(__uint64_t x, __uint32_t y)
#endif /* XFS_WARN */
#endif /* DEBUG */
+#ifdef CONFIG_XFS_RT
+#define XFS_IS_REALTIME_INODE(ip) ((ip)->i_d.di_flags & XFS_DIFLAG_REALTIME)
+#else
+#define XFS_IS_REALTIME_INODE(ip) (0)
+#endif
+
#endif /* __XFS_LINUX__ */