* Author: Andreas Dilger <adilger@clusterfs.com>
*/
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
-
#define DEBUG_SUBSYSTEM S_FILTER
#include <linux/version.h>
__u64 obd_max_pages = 0;
__u64 obd_max_alloc = 0;
struct lprocfs_stats *obd_memory = NULL;
+EXPORT_SYMBOL(obd_memory);
cfs_spinlock_t obd_updatemax_lock = CFS_SPIN_LOCK_UNLOCKED;
/* refine later and change to seqlock or simlar from libcfs */
OBD_SET_CTXT_MAGIC(save);
save->fs = get_fs();
- LASSERT(cfs_atomic_read(&cfs_fs_pwd(current->fs)->d_count));
- LASSERT(cfs_atomic_read(&new_ctx->pwd->d_count));
+ LASSERT(d_refcount(cfs_fs_pwd(current->fs)));
+ LASSERT(d_refcount(new_ctx->pwd));
save->pwd = dget(cfs_fs_pwd(current->fs));
save->pwdmnt = mntget(cfs_fs_mnt(current->fs));
save->luc.luc_umask = cfs_curproc_umask();
}
EXPORT_SYMBOL(simple_truncate);
-#ifdef LUSTRE_KERNEL_VERSION
int __lvfs_set_rdonly(lvfs_sbdev_type dev, lvfs_sbdev_type jdev)
{
#ifdef HAVE_DEV_SET_RDONLY
RETURN(rc);
}
EXPORT_SYMBOL(lvfs_check_io_health);
-#endif /* LUSTRE_KERNEL_VERSION */
void obd_update_maxusage()
{
cfs_spin_unlock(&obd_updatemax_lock);
}
+EXPORT_SYMBOL(obd_update_maxusage);
__u64 obd_memory_max(void)
{
return ret;
}
+EXPORT_SYMBOL(obd_memory_max);
__u64 obd_pages_max(void)
{
return ret;
}
-
-EXPORT_SYMBOL(obd_update_maxusage);
EXPORT_SYMBOL(obd_pages_max);
-EXPORT_SYMBOL(obd_memory_max);
-EXPORT_SYMBOL(obd_memory);
#ifdef LPROCFS
__s64 lprocfs_read_helper(struct lprocfs_counter *lc,