Unionfs: support CONFIG_PREEMPT_RT
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:55:11 +0000 (19:55 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:55:11 +0000 (19:55 -0500)
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 86de00c39d3e9ad42c9df09b1b5c55aaf6e35731..9e7563037c89816f11a5e68fada8776aea0a25f7 100644 (file)
@@ -145,7 +145,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 unionfs_data *data;
 };