Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xcap-capability-linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xcap
xcap-capability-linux
Commits
0d22a750
Commit
0d22a750
authored
Nov 17, 2015
by
Charlie Jacobsen
Committed by
Vikram Narayanan
Oct 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Starting glue.
parent
65db6aff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
4 deletions
+51
-4
virt/lcd-domains/test-mods/pmfs/Makefile
virt/lcd-domains/test-mods/pmfs/Makefile
+10
-0
virt/lcd-domains/test-mods/pmfs/glue/bdi_caller.c
virt/lcd-domains/test-mods/pmfs/glue/bdi_caller.c
+13
-0
virt/lcd-domains/test-mods/pmfs/glue/vfs_caller.c
virt/lcd-domains/test-mods/pmfs/glue/vfs_caller.c
+12
-0
virt/lcd-domains/test-mods/pmfs/pmfs/super.c
virt/lcd-domains/test-mods/pmfs/pmfs/super.c
+14
-4
virt/lcd-domains/test-mods/pmfs/todo.txt
virt/lcd-domains/test-mods/pmfs/todo.txt
+2
-0
No files found.
virt/lcd-domains/test-mods/pmfs/Makefile
View file @
0d22a750
#---------- 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
...
...
virt/lcd-domains/test-mods/pmfs/glue/bdi_caller.c
0 → 100644
View file @
0d22a750
#include <linux/backing-dev.h>
int
bdi_init
(
struct
backing_dev_info
*
bdi
)
{
return
0
;
}
void
bdi_destroy
(
struct
backing_dev_info
*
bdi
)
{
return
;
}
virt/lcd-domains/test-mods/pmfs/glue/vfs_caller.c
0 → 100644
View file @
0d22a750
#include <linux/fs.h>
int
register_filesystem
(
struct
file_system_type
*
)
{
return
0
;
}
int
unregister_filesystem
(
struct
file_system_type
*
)
{
return
0
;
}
virt/lcd-domains/test-mods/pmfs/pmfs/super.c
View file @
0d22a750
...
...
@@ -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
virt/lcd-domains/test-mods/pmfs/todo.txt
0 → 100644
View file @
0d22a750
1 - fix inode_init_once to fire every time we alloc an inode
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment