[packages/kernel] - updated for 3.7 (not tested)

arekm arekm at pld-linux.org
Sat Feb 16 08:04:22 CET 2013


commit 2964f0b990869d92612b47c4003f3daf27670b38
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 16 08:04:19 2013 +0100

    - updated for 3.7 (not tested)

 kernel-inittmpfs.patch | 49 ++++++++++---------------------------------------
 1 file changed, 10 insertions(+), 39 deletions(-)
---
diff --git a/kernel-inittmpfs.patch b/kernel-inittmpfs.patch
index a8a238b..a89cb38 100644
--- a/kernel-inittmpfs.patch
+++ b/kernel-inittmpfs.patch
@@ -30,14 +30,7 @@ diff -ruw linux-2.6.30.orig/fs/Kconfig linux-2.6.30/fs/Kconfig
 diff -ruw linux-2.6.30.orig/fs/ramfs/inode.c linux-2.6.30/fs/ramfs/inode.c
 --- linux-2.6.30.orig/fs/ramfs/inode.c	2009-02-12 17:51:15.000000000 +0000
 +++ linux-2.6.30/fs/ramfs/inode.c	2009-02-13 11:30:30.000000000 +0000
-@@ -255,17 +255,18 @@
- 	return err;
- }
- 
-+
- struct dentry *ramfs_mount(struct file_system_type *fs_type,
- 	int flags, const char *dev_name, void *data)
- {
+@@ -244,12 +244,6 @@
  	return mount_nodev(fs_type, flags, data, ramfs_fill_super);
  }
  
@@ -46,23 +39,15 @@ diff -ruw linux-2.6.30.orig/fs/ramfs/inode.c linux-2.6.30/fs/ramfs/inode.c
 -{
 -	return mount_nodev(fs_type, flags|MS_NOUSER, data, ramfs_fill_super);
 -}
-+static struct file_system_type ramfs_fs_type = {
-+	.name = "ramfs",
-+	.mount = ramfs_mount,
-+	.kill_sb = kill_litter_super,
-+};
- 
+-
  static void ramfs_kill_sb(struct super_block *sb)
  {
-@@ -273,30 +274,19 @@
- 	kill_litter_super(sb);
- }
- 
--static struct file_system_type ramfs_fs_type = {
--	.name = "ramfs",
--	.mount = ramfs_mount,
--	.kill_sb = kill_litter_super,
--};
+ 	kfree(sb->s_fs_info);
+@@ -261,18 +255,20 @@
+ 	.mount		= ramfs_mount,
+ 	.kill_sb	= ramfs_kill_sb,
+ };
++
 +#ifndef CONFIG_TMPFS_ROOT
 +static struct dentry *rootfs_mount(struct file_system_type *fs_type,
 +	int flags, const char *dev_name, void *data)
@@ -80,19 +65,12 @@ diff -ruw linux-2.6.30.orig/fs/ramfs/inode.c linux-2.6.30/fs/ramfs/inode.c
 -{
 -	return register_filesystem(&ramfs_fs_type);
 -}
--
--static void __exit exit_ramfs_fs(void)
--{
--	unregister_filesystem(&ramfs_fs_type);
--}
--
 -module_init(init_ramfs_fs)
--module_exit(exit_ramfs_fs)
 -
  int __init init_rootfs(void)
  {
  	int err;
-@@ -311,5 +301,19 @@
+@@ -287,3 +283,12 @@
  
  	return err;
  }
@@ -102,16 +80,9 @@ diff -ruw linux-2.6.30.orig/fs/ramfs/inode.c linux-2.6.30/fs/ramfs/inode.c
 +{
 +	return register_filesystem(&ramfs_fs_type);
 +}
++module_init(init_ramfs_fs)
 +
-+static void __exit exit_ramfs_fs(void)
-+{
-+	unregister_filesystem(&ramfs_fs_type);
-+}
 +
-+module_init(init_ramfs_fs)
-+module_exit(exit_ramfs_fs)
- 
- MODULE_LICENSE("GPL");
 diff -ruw linux-2.6.30.orig/mm/shmem.c linux-2.6.30/mm/shmem.c
 --- linux-2.6.30.orig/mm/shmem.c	2009-02-12 17:51:15.000000000 +0000
 +++ linux-2.6.30/mm/shmem.c	2009-02-13 11:42:02.000000000 +0000
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/2964f0b990869d92612b47c4003f3daf27670b38



More information about the pld-cvs-commit mailing list