From: Erez_Zadok Date: Fri, 24 Aug 2007 14:42:56 +0000 (-0400) Subject: Unionfs: support CONFIG_PREEMPT_RT X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=7b507983b6d88c345ea10be59839f8423aa7f318;p=unionfs-2.6.39.y.git Unionfs: support CONFIG_PREEMPT_RT Use compat_rw_semaphore when using the real-time preemption patches. Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h index 3b555bc9985..f03143ef145 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; };