Unionfs: support CONFIG_PREEMPT_RT
authorErez_Zadok <ezk@cs.sunysb.edu>
Fri, 16 Nov 2007 18:46:35 +0000 (13:46 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:04 +0000 (19:03 -0400)
Use compat_rw_semaphore when using the real-time preemption patches.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/union.h

index 2675b6bcf312850ffd15fc8a13e3fccdaf6e4da7..98bc39da11d58fa579be4841ce3cd75876374884 100644 (file)
@@ -174,7 +174,11 @@ struct unionfs_sb_info {
         *   2) any new operations do not execute until the currently
         *      running branch management operation completes
         */
+#ifdef CONFIG_PREEMPT_RT
+       struct compat_rw_semaphore rwsem;
+#else /* not CONFIG_PREEMPT_RT */
        struct rw_semaphore rwsem;
+#endif /* not CONFIG_PREEMPT_RT */
        int high_branch_id;     /* last unique branch ID given */
        struct odf_sb_info odf;
        struct unionfs_data *data;