commit 881a2e0c2fcf15e8057c3b42ee2dac4d3d1263d8
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Fri Aug 24 10:42:56 2007 -0400

    Unionfs: support CONFIG_PREEMPT_RT
    
    Use compat_rw_semaphore when using the real-time preemption patches.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index 46d5f45..c03d1f4 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -143,7 +143,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;
 };
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to