* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2013, Intel Corporation.
+ * Copyright (c) 2011, 2014, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
.fh_scan_func = fld_rrb_scan
},
{
- 0,
+ NULL,
}
};
spin_unlock(&fld->lcf_lock);
RETURN(-ENOENT);
}
-EXPORT_SYMBOL(fld_client_del_target);
-#ifdef LPROCFS
+#ifdef CONFIG_PROC_FS
static int fld_client_proc_init(struct lu_client_fld *fld)
{
int rc;
ENTRY;
- fld->lcf_proc_dir = lprocfs_seq_register(fld->lcf_name,
- fld_type_proc_dir,
- NULL, NULL);
+ fld->lcf_proc_dir = lprocfs_register(fld->lcf_name, fld_type_proc_dir,
+ NULL, NULL);
if (IS_ERR(fld->lcf_proc_dir)) {
CERROR("%s: LProcFS failed in fld-init\n",
fld->lcf_name);
RETURN(rc);
}
- rc = lprocfs_seq_add_vars(fld->lcf_proc_dir,
- fld_client_proc_list, fld);
+ rc = lprocfs_add_vars(fld->lcf_proc_dir, fld_client_proc_list, fld);
if (rc) {
CERROR("%s: Can't init FLD proc, rc %d\n",
fld->lcf_name, rc);
}
EXIT;
}
-#else /* LPROCFS */
+#else /* !CONFIG_PROC_FS */
static int fld_client_proc_init(struct lu_client_fld *fld)
{
return 0;
{
return;
}
-#endif /* !LPROCFS */
+#endif /* CONFIG_PROC_FS */
EXPORT_SYMBOL(fld_client_proc_fini);
{
fld_cache_flush(fld->lcf_cache);
}
-EXPORT_SYMBOL(fld_client_flush);
struct proc_dir_entry *fld_type_proc_dir;
static int __init fld_mod_init(void)
{
- fld_type_proc_dir = lprocfs_seq_register(LUSTRE_FLD_NAME,
- proc_lustre_root,
- NULL, NULL);
+ fld_type_proc_dir = lprocfs_register(LUSTRE_FLD_NAME,
+ proc_lustre_root,
+ NULL, NULL);
if (IS_ERR(fld_type_proc_dir))
return PTR_ERR(fld_type_proc_dir);