commit 54ebef4eea689b368df1d180289db8cd4e80019c
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Thu Mar 15 18:38:42 2007 -0400

    sioa wait and wake_up inline functions to make code more readable

diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index 63cdc95..1a19c69 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -104,8 +104,8 @@ void odf_put_super(struct odf_sb_info *osi)
        dput(osi->mnt->mnt_sb->s_root);
        mntput(osi->mnt);
        osi->odi_rc = NULL;
-       wake_up_process(osi->sioa->process);
-       wait_for_completion(&osi->sioa->comp);
+       wake_up_sioa(osi->sioa);
+       wait_for_sioa(osi->sioa);
        kfree(osi->sioa);
 }
 
diff --git a/fs/unionfs/sioq.h b/fs/unionfs/sioq.h
index 545428c..fd65ad0 100644
--- a/fs/unionfs/sioq.h
+++ b/fs/unionfs/sioq.h
@@ -68,6 +68,14 @@ extern int __init init_sioq(void);
 extern __exit void stop_sioq(void);
 extern void run_sioq(work_func_t func, struct sioq_args *args);
 extern void run_sioa(struct sioa_args *args, void (*work) (void*), int (*done) 
(void*), signed long timeout);
+static inline void wake_up_sioa(struct sioa_args *args)
+{
+       wake_up_process(args->process);
+}
+static inline void wait_for_sioa(struct sioa_args *args)
+{
+       wait_for_completion(&args->comp);
+}
 
 /* Extern definitions for our privlege escalation helpers */
 extern void __unionfs_create(struct work_struct *work);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to