From: Erez_Zadok Date: Fri, 24 Aug 2007 14:42:56 +0000 (-0400) Subject: Unionfs: support CONFIG_PREEMPT_RT X-Git-Tag: unionfs-2.1.3~14 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=25fb8dc08752c541ffc9a1d476648b2d0d5698af;p=unionfs-2.6.26.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; };