public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/betagarden:master commit in: sys-fs/wrapfs/files/
@ 2013-06-04  0:01 Sebastian Pipping
  0 siblings, 0 replies; only message in thread
From: Sebastian Pipping @ 2013-06-04  0:01 UTC (permalink / raw
  To: gentoo-commits

commit:     164ca436e0192c15ffe52de1cd867bf2085d9dea
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Tue Jun  4 00:02:04 2013 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Tue Jun  4 00:02:04 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=164ca436

sys-fs/wrapfs: Add missing patch

---
 .../wrapfs/files/wrapfs-0.1_p20101202-2.6.39.patch | 85 ++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/sys-fs/wrapfs/files/wrapfs-0.1_p20101202-2.6.39.patch b/sys-fs/wrapfs/files/wrapfs-0.1_p20101202-2.6.39.patch
new file mode 100644
index 0000000..48a4f31
--- /dev/null
+++ b/sys-fs/wrapfs/files/wrapfs-0.1_p20101202-2.6.39.patch
@@ -0,0 +1,85 @@
+From eadfd09170914cc2a2e366338dd828a1a6b2d04f Mon Sep 17 00:00:00 2001
+From: Erez Zadok <ezk@cs.sunysb.edu>
+Date: Fri, 18 Mar 2011 13:22:50 -0400
+Subject: [PATCH] Wrapfs: port to 2.6.39
+
+Remove lock/unlock_kernel in ->fasync.
+Convert from ->get_sb to ->mount op.
+Remove include to smp_lock.h, added sched.h.
+
+Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
+---
+ fs/wrapfs/file.c   |    2 --
+ fs/wrapfs/main.c   |   13 +++++--------
+ fs/wrapfs/wrapfs.h |    2 +-
+ 3 files changed, 6 insertions(+), 11 deletions(-)
+
+diff --git a/fs/wrapfs/file.c b/fs/wrapfs/file.c
+index e837637..e16b21c 100644
+--- a/fs/wrapfs/file.c
++++ b/fs/wrapfs/file.c
+@@ -254,11 +254,9 @@ static int wrapfs_fasync(int fd, struct file *file, int flag)
+ 	int err = 0;
+ 	struct file *lower_file = NULL;
+ 
+-	lock_kernel();
+ 	lower_file = wrapfs_lower_file(file);
+ 	if (lower_file->f_op && lower_file->f_op->fasync)
+ 		err = lower_file->f_op->fasync(fd, lower_file, flag);
+-	unlock_kernel();
+ 
+ 	return err;
+ }
+diff --git a/fs/wrapfs/main.c b/fs/wrapfs/main.c
+index d9249f1..6281840 100644
+--- a/fs/wrapfs/main.c
++++ b/fs/wrapfs/main.c
+@@ -131,22 +131,19 @@ out:
+ 	return err;
+ }
+ 
+-static int wrapfs_get_sb(struct file_system_type *fs_type,
+-			 int flags, const char *dev_name,
+-			 void *raw_data, struct vfsmount *mnt)
++struct dentry *wrapfs_mount(struct file_system_type *fs_type, int flags,
++			    const char *dev_name, void *raw_data)
+ {
+-	int err;
+ 	void *lower_path_name = (void *) dev_name;
+ 
+-	err = get_sb_nodev(fs_type, flags, lower_path_name,
+-			   wrapfs_read_super, mnt);
+-	return err;
++	return mount_nodev(fs_type, flags, lower_path_name,
++			   wrapfs_read_super);
+ }
+ 
+ static struct file_system_type wrapfs_fs_type = {
+ 	.owner		= THIS_MODULE,
+ 	.name		= WRAPFS_NAME,
+-	.get_sb		= wrapfs_get_sb,
++	.mount		= wrapfs_mount,
+ 	.kill_sb	= generic_shutdown_super,
+ 	.fs_flags	= FS_REVAL_DOT,
+ };
+diff --git a/fs/wrapfs/wrapfs.h b/fs/wrapfs/wrapfs.h
+index 0e5901cd..778d79a 100644
+--- a/fs/wrapfs/wrapfs.h
++++ b/fs/wrapfs/wrapfs.h
+@@ -19,12 +19,12 @@
+ #include <linux/mount.h>
+ #include <linux/namei.h>
+ #include <linux/seq_file.h>
+-#include <linux/smp_lock.h>
+ #include <linux/statfs.h>
+ #include <linux/fs_stack.h>
+ #include <linux/magic.h>
+ #include <linux/uaccess.h>
+ #include <linux/slab.h>
++#include <linux/sched.h>
+ 
+ /* the file system name */
+ #define WRAPFS_NAME "wrapfs"
+-- 
+1.7.4.4
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-04  0:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04  0:01 [gentoo-commits] proj/betagarden:master commit in: sys-fs/wrapfs/files/ Sebastian Pipping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox