commit ddbdc9dc0af2827daa31bf37cfdb536e78dbd39c
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Mon Mar 26 16:33:03 2007 -0400

    use seconds instead of jiffies for the cleanup thread, default to 30 secs

diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index 4c7dadb..727e27e 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -68,7 +68,7 @@ struct odf_sb_info* odf_read_super(char *options)
        }
        sioa->cleanup.odf = osi;
        osi->cleanup = sioa;
-       run_sioa(sioa, __odf_cleanup, ODF_CL_TIMEOUT);
+       run_sioa(sioa, __odf_cleanup, msecs_to_jiffies(ODF_CL_TIMEOUT*1000));
 
        osi->mnt = nd.mnt;
        mntget(osi->mnt);
diff --git a/fs/unionfs/odf.h b/fs/unionfs/odf.h
index bcb8bb9..0d6e66c 100644
--- a/fs/unionfs/odf.h
+++ b/fs/unionfs/odf.h
@@ -39,7 +39,7 @@
 #define ODF_DIRENT_MAGIC 0x0DFD1300
 
 /* Reclaim thread timeout */
-#define ODF_CL_TIMEOUT 10000
+#define ODF_CL_TIMEOUT 30 /* seconds */
 #define ODF_CL_PCNT_I 25 /* cleanup ic when % of free inodes goes below this 
val */
 #define ODF_CL_PCNT_B 30 /* cleanup ic when % of free blocks goes below this 
val */
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to