1 |
stefaan 08/04/04 12:39:17 |
2 |
|
3 |
Added: STABLE14-linux-flush-compare-20080402 |
4 |
STABLE14-linux-flush-unlock-20080402 |
5 |
Log: |
6 |
Correctly add the patches for 1.4.7_pre2-r1 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-fs/openafs-kernel/files/STABLE14-linux-flush-compare-20080402 |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-compare-20080402?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-compare-20080402?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: STABLE14-linux-flush-compare-20080402 |
16 |
=================================================================== |
17 |
CS file: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v |
18 |
retrieving revision 1.81.2.62 |
19 |
retrieving revision 1.81.2.63 |
20 |
diff -u -r1.81.2.62 -r1.81.2.63 |
21 |
--- openafs/src/afs/LINUX/osi_vnodeops.c 2008/04/02 13:11:42 1.81.2.62 |
22 |
+++ openafs/src/afs/LINUX/osi_vnodeops.c 2008/04/02 18:27:13 1.81.2.63 |
23 |
@@ -22,7 +22,7 @@ |
24 |
#include "afs/param.h" |
25 |
|
26 |
RCSID |
27 |
- ("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-compare-20080402,v 1.1 2008/04/04 12:39:17 stefaan Exp $"); |
28 |
+ ("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-compare-20080402,v 1.1 2008/04/04 12:39:17 stefaan Exp $"); |
29 |
|
30 |
#include "afs/sysincludes.h" |
31 |
#include "afsincludes.h" |
32 |
@@ -570,7 +570,7 @@ |
33 |
|
34 |
AFS_GLOCK(); |
35 |
|
36 |
- if (fp->f_flags | O_RDONLY) { /* readers dont flush */ |
37 |
+ if ((fp->f_flags & O_ACCMODE) == O_RDONLY) { /* readers dont flush */ |
38 |
AFS_GUNLOCK(); |
39 |
return 0; |
40 |
} |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-fs/openafs-kernel/files/STABLE14-linux-flush-unlock-20080402 |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-unlock-20080402?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-unlock-20080402?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: STABLE14-linux-flush-unlock-20080402 |
51 |
=================================================================== |
52 |
=================================================================== |
53 |
RCS file: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v |
54 |
retrieving revision 1.81.2.61 |
55 |
retrieving revision 1.81.2.62 |
56 |
diff -u -r1.81.2.61 -r1.81.2.62 |
57 |
--- openafs/src/afs/LINUX/osi_vnodeops.c 2008/03/26 04:17:32 1.81.2.61 |
58 |
+++ openafs/src/afs/LINUX/osi_vnodeops.c 2008/04/02 13:11:42 1.81.2.62 |
59 |
@@ -22,7 +22,7 @@ |
60 |
#include "afs/param.h" |
61 |
|
62 |
RCSID |
63 |
- ("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-unlock-20080402,v 1.1 2008/04/04 12:39:17 stefaan Exp $"); |
64 |
+ ("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/files/STABLE14-linux-flush-unlock-20080402,v 1.1 2008/04/04 12:39:17 stefaan Exp $"); |
65 |
|
66 |
#include "afs/sysincludes.h" |
67 |
#include "afsincludes.h" |
68 |
@@ -570,8 +570,10 @@ |
69 |
|
70 |
AFS_GLOCK(); |
71 |
|
72 |
- if (fp->f_flags | O_RDONLY) /* readers dont flush */ |
73 |
+ if (fp->f_flags | O_RDONLY) { /* readers dont flush */ |
74 |
+ AFS_GUNLOCK(); |
75 |
return 0; |
76 |
+ } |
77 |
|
78 |
credp = crref(); |
79 |
vcp = VTOAFS(FILE_INODE(fp)); |
80 |
|
81 |
|
82 |
|
83 |
|
84 |
-- |
85 |
gentoo-commits@l.g.o mailing list |