Whamcloud - gitweb
Branch HEAD
authorbobijam <bobijam>
Thu, 13 Dec 2007 05:32:06 +0000 (05:32 +0000)
committerbobijam <bobijam>
Thu, 13 Dec 2007 05:32:06 +0000 (05:32 +0000)
b=12211
i=green, adilger

commit the missing part and use a proper macro (thanks shadow for finding it out).

lustre/lvfs/autoMakefile.am
lustre/obdclass/linux/linux-sysctl.c

index 658e540..0a825c7 100644 (file)
@@ -74,7 +74,7 @@ install-data-hook: $(install_data_hook)
 
 DIST_SOURCES = fsfilt.c fsfilt_ext3.c fsfilt_reiserfs.c lvfs_common.c \
        lvfs_internal.h lvfs_linux.c lvfs_userfs.c \
-       upcall_cache.c \
+       upcall_cache.c prng.c lvfs_lib.c \
        lustre_quota_fmt.c lustre_quota_fmt.h quotafmt_test.c \
         # quotacheck_test.c quotactl_test.c fsfilt_ext3_quota.h
 
index b5d950e..121fdf9 100644 (file)
@@ -184,10 +184,8 @@ int LL_PROC_PROTO(proc_pages_max)
 #ifdef RANDOM_FAIL_ALLOC
 int LL_PROC_PROTO(proc_alloc_fail_rate)
 {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8)
-        loff_t *ppos = &filp->f_pos;
-#endif
         int rc          = 0;
+        DECLARE_LL_PROC_PPOS_DECL;
 
         if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
                 *lenp = 0;