Commit 0d22a750 authored by Charlie Jacobsen's avatar Charlie Jacobsen Committed by Vikram Narayanan

Starting glue.

parent 65db6aff
#---------- PMFS LCD ----------
# Flag to toggle some coditional compilation in the original source code
# for isolation
CFLAGS_lcd-test-mod-pmfs-lcd.o := -DLCD_ISOLATE
# The original code
obj-$(CONFIG_LCD_TEST_MOD_PMFS_LCD) += lcd-test-mod-pmfs-lcd.o
......@@ -17,10 +21,16 @@ lcd-test-mod-pmfs-lcd-y += $(addprefix pmfs/, bbuild.o \
xip.o \
wprotect.o)
# LCD Main
lcd-test-mod-pmfs-lcd-y += $(addprefix lcd/, main.o)
# LIBLCD
lcd-test-mod-pmfs-lcd-y += $(LIBLCD)
# Glue
lcd-test-mod-pmfs-lcd-y += $(addprefix glue/, vfs_caller.o \
bdi_caller.o)
#---------- BOOT ----------
obj-$(CONFIG_LCD_TEST_MOD_PMFS_BOOT) += lcd-test-mod-pmfs-boot.o
......
#include <linux/backing-dev.h>
int bdi_init(struct backing_dev_info *bdi)
{
return 0;
}
void bdi_destroy(struct backing_dev_info *bdi)
{
return;
}
#include <linux/fs.h>
int register_filesystem(struct file_system_type *)
{
return 0;
}
int unregister_filesystem(struct file_system_type *)
{
return 0;
}
......@@ -1085,6 +1085,8 @@ static int __init init_blocknode_cache(void)
static int __init init_inodecache(void)
{
#ifdef LCD_ISOLATE
#error "It worked!"
/*
* Objects in this slab cache pass through an interface boundary
* (struct inode is inside struct pmfs_inode_vfs). Put inside glue
......@@ -1216,7 +1218,10 @@ static const struct export_operations pmfs_export_ops = {
.get_parent = pmfs_get_parent,
};
static int __init init_pmfs_fs(void)
#ifndef LCD_ISOLATE
static
#endif
int __init init_pmfs_fs(void)
{
int rc = 0;
......@@ -1253,7 +1258,10 @@ out1:
return rc;
}
static void __exit exit_pmfs_fs(void)
#ifndef LCD_ISOLATE
static
#endif
void __exit exit_pmfs_fs(void)
{
unregister_filesystem(&pmfs_fs_type);
bdi_destroy(&pmfs_backing_dev_info);
......@@ -1266,5 +1274,7 @@ MODULE_AUTHOR("Intel Corporation <linux-pmfs@intel.com>");
MODULE_DESCRIPTION("Persistent Memory File System");
MODULE_LICENSE("GPL");
/* module_init(init_pmfs_fs) */
/* module_exit(exit_pmfs_fs) */
#ifndef LCD_ISOLATE
module_init(init_pmfs_fs)
module_exit(exit_pmfs_fs)
#endif
1 - fix inode_init_once to fire every time we alloc an inode
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment