Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/aufs3/files/
Date: Sat, 11 Feb 2017 20:17:19
Message-Id: 1486844120.8b40b7b16cbab433099c2dc3b7b8b27b56ee1659.soap@gentoo
1 commit: 8b40b7b16cbab433099c2dc3b7b8b27b56ee1659
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 11 16:27:48 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 11 20:15:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b40b7b1
7
8 sys-fs/aufs3: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/3915
11
12 sys-fs/aufs3/files/pax-3.patch | 90 ------------------------------------------
13 1 file changed, 90 deletions(-)
14
15 diff --git a/sys-fs/aufs3/files/pax-3.patch b/sys-fs/aufs3/files/pax-3.patch
16 deleted file mode 100644
17 index 584fa6ace5..0000000000
18 --- a/sys-fs/aufs3/files/pax-3.patch
19 +++ /dev/null
20 @@ -1,90 +0,0 @@
21 ---- a/fs/aufs/dynop.c 2012-10-09 15:41:32.652989534 -0400
22 -+++ b/fs/aufs/dynop.c 2012-10-09 15:41:58.562989820 -0400
23 -@@ -149,9 +149,11 @@
24 - #define DySet(func, dst, src, h_op, h_sb) do { \
25 - DyDbgInc(cnt); \
26 - if (h_op->func) { \
27 -- if (src.func) \
28 -- dst.func = src.func; \
29 -- else \
30 -+ if (src.func) { \
31 -+ pax_open_kernel(); \
32 -+ *(void **)&dst.func = src.func; \
33 -+ pax_close_kernel(); \
34 -+ } else \
35 - AuDbg("%s %s\n", au_sbtype(h_sb), #func); \
36 - } \
37 - } while (0)
38 -@@ -159,7 +161,9 @@
39 - #define DySetForce(func, dst, src) do { \
40 - AuDebugOn(!src.func); \
41 - DyDbgInc(cnt); \
42 -- dst.func = src.func; \
43 -+ pax_open_kernel(); \
44 -+ *(void **)&dst.func = src.func; \
45 -+ pax_close_kernel(); \
46 - } while (0)
47 -
48 - #define DySetAop(func) \
49 -@@ -266,15 +270,17 @@
50 - */
51 - static void dy_adx(struct au_dyaop *dyaop, int do_dx)
52 - {
53 -+ pax_open_kernel();
54 - if (!do_dx) {
55 -- dyaop->da_op.direct_IO = NULL;
56 -- dyaop->da_op.get_xip_mem = NULL;
57 -+ *(void **)&dyaop->da_op.direct_IO = NULL;
58 -+ *(void **)&dyaop->da_op.get_xip_mem = NULL;
59 - } else {
60 -- dyaop->da_op.direct_IO = aufs_aop.direct_IO;
61 -- dyaop->da_op.get_xip_mem = aufs_aop.get_xip_mem;
62 -+ *(void **)&dyaop->da_op.direct_IO = aufs_aop.direct_IO;
63 -+ *(void **)&dyaop->da_op.get_xip_mem = aufs_aop.get_xip_mem;
64 - if (!dyaop->da_get_xip_mem)
65 -- dyaop->da_op.get_xip_mem = NULL;
66 -+ *(void **)&dyaop->da_op.get_xip_mem = NULL;
67 - }
68 -+ pax_close_kernel();
69 - }
70 -
71 - static struct au_dyaop *dy_aget(struct au_branch *br,
72 ---- a/fs/aufs/f_op_sp.c 2012-10-09 15:41:32.652989534 -0400
73 -+++ b/fs/aufs/f_op_sp.c 2012-10-09 15:41:58.562989820 -0400
74 -@@ -104,7 +104,7 @@
75 - static int aufs_open_sp(struct inode *inode, struct file *file);
76 - static struct au_sp_fop {
77 - int done;
78 -- struct file_operations fop; /* not 'const' */
79 -+ file_operations_no_const fop; /* not 'const' */
80 - spinlock_t spin;
81 - } au_sp_fop[AuSp_Last] = {
82 - [AuSp_FIFO] = {
83 -@@ -157,8 +157,10 @@
84 - h_file = au_hf_top(file);
85 - spin_lock(&p->spin);
86 - if (!p->done) {
87 -- p->fop = *h_file->f_op;
88 -+ pax_open_kernel();
89 -+ memcpy((void *)&p->fop, h_file->f_op, sizeof(p->fop));
90 - p->fop.owner = THIS_MODULE;
91 -+ pax_close_kernel();
92 - if (p->fop.aio_read)
93 - p->fop.aio_read = aufs_aio_read_sp;
94 - if (p->fop.aio_write)
95 -diff -Naur linux-3.8.3-pentoo/fs/aufs/sysfs.c linux-3.8.3-pentoo-aufsfix/fs/aufs/sysfs.c
96 ---- linux-3.8.3-pentoo/fs/aufs/sysfs.c 2013-04-29 00:07:50.478827567 -0400
97 -+++ linux-3.8.3-pentoo-aufsfix/fs/aufs/sysfs.c 2013-04-28 23:46:23.724793109 -0400
98 -@@ -208,8 +208,10 @@
99 - struct attribute *attr = &br->br_attr;
100 -
101 - sysfs_attr_init(attr);
102 -- attr->name = br->br_name;
103 -- attr->mode = S_IRUGO;
104 -+ pax_open_kernel();
105 -+ *(void **)&attr->name = br->br_name;
106 -+ *(void **)&attr->mode = S_IRUGO;
107 -+ pax_close_kernel();
108 - }
109 -
110 - void sysaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex)