GIT: unionfs2-2.6.27.y: Unionfs: cleaner support for RT patches
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:25 EDT 2010
commit ebd609088f941a6b6f4639ced0209c50ee586763
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Wed Nov 21 21:55:53 2007 -0500
Unionfs: cleaner support for RT patches
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index ddb9b8b..ae277d1 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -79,6 +79,13 @@ extern struct address_space_operations unionfs_aops;
/* How long should an entry be allowed to persist */
#define RDCACHE_JIFFIES (5*HZ)
+/* compatibility with Real-Time patches */
+#ifdef CONFIG_PREEMPT_RT
+# define unionfs_rw_semaphore compat_rw_semaphore
+#else /* not CONFIG_PREEMPT_RT */
+# define unionfs_rw_semaphore rw_semaphore
+#endif /* not CONFIG_PREEMPT_RT */
+
/* file private data. */
struct unionfs_file_info {
int bstart;
@@ -153,11 +160,7 @@ struct unionfs_sb_info {
* branch-management is used on a pivot_root'ed union, because we
* have to ->lookup paths which belong to the same union.
*/
-#ifdef CONFIG_PREEMPT_RT
- struct compat_rw_semaphore rwsem;
-#else /* not CONFIG_PREEMPT_RT */
- struct rw_semaphore rwsem;
-#endif /* not CONFIG_PREEMPT_RT */
+ struct unionfs_rw_semaphore rwsem;
pid_t write_lock_owner; /* PID of rw_sem owner (write lock) */
int high_branch_id; /* last unique branch ID given */
struct unionfs_data *data;
More information about the unionfs-cvs
mailing list