From: Erez_Zadok Date: Fri, 16 Nov 2007 18:46:35 +0000 (-0500) Subject: Unionfs: support CONFIG_PREEMPT_RT X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=b53dee43d05dbbb2dfedad42457a7899ac6535d8;p=unionfs-odf.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 2675b6bcf3..98bc39da11 100644 --- a/fs/unionfs/union.h +++ b/fs/unionfs/union.h @@ -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;