Line 0
Link Here
|
|
|
1 |
diff -urN linux/net/bridge/br_stp_if.c drobtmp/net/bridge/br_stp_if.c |
2 |
--- linux/net/bridge/br_stp_if.c 2009-06-20 01:46:25.000000000 -0600 |
Line 0
Link Here
|
|
|
1 |
028stab062.3 -- buildfix |
2 |
|
3 |
The number of issues during move up to 028stab062.3 |
4 |
|
5 |
1) There is no f_path.dentry in file struct. Use f_dentry former. |
6 |
2) IOMMU_HELPER depends on a widen number of vars. |
7 |
3) PDAudioCF sound card is plainly broken. Mark it that. |
8 |
4) Xen PV-ON-HVM is broken as well if base Xen support is not |
9 |
enabled. Don't turn on XEN_PV_ON_HVM config option without |
10 |
Xen support in general. |
11 |
5) ACPI_PROCESSOR config should be built in. Not module. |
12 |
6) There is no zero_user_page but zero_user function. |
13 |
|
14 |
Closes http://bugzilla.openvz.org/show_bug.cgi?id=1279 |
15 |
|
16 |
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> |
17 |
--- |
18 |
arch/x86_64/Kconfig | 2 |
19 |
fs/cifs/cifsfs.c | 6 - |
20 |
fs/cifs/fcntl.c | 4 - |
21 |
fs/cifs/file.c | 86 +++++++++++++------------- |
22 |
fs/cifs/readdir.c | 28 ++++---- |
23 |
fs/ntfs/aops.c | 2 |
24 |
fs/ntfs/compress.c | 2 |
25 |
samples/tracepoints/tracepoint-probe-sample.c | 6 - |
26 |
sound/oss/dmasound/dmasound_core.c | 4 - |
27 |
sound/oss/msnd_pinnacle.c | 4 - |
28 |
sound/oss/soundcard.c | 8 +- |
29 |
sound/pcmcia/Kconfig | 2 |
30 |
sound/sound_firmware.c | 2 |
31 |
13 files changed, 78 insertions(+), 78 deletions(-) |
32 |
|
33 |
Index: linux-2.6.18-openvz/arch/x86_64/Kconfig |
34 |
===================================================================== |
35 |
--- linux-2.6.18-openvz.orig/arch/x86_64/Kconfig |
36 |
+++ linux-2.6.18-openvz/arch/x86_64/Kconfig |
37 |
@@ -532,7 +532,7 @@ config AMD_IOMMU |
38 |
config IOMMU_HELPER |
39 |
bool "IOMMU Helper functions" |
40 |
default n |
41 |
- depends on (AMD_IOMMU || GART_IOMMU) |
42 |
+ depends on (CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU) |
43 |
|
44 |
# need this always selected by IOMMU for the VIA workaround |
45 |
config SWIOTLB |
46 |
Index: linux-2.6.18-openvz/fs/cifs/cifsfs.c |
47 |
===================================================================== |
48 |
--- linux-2.6.18-openvz.orig/fs/cifs/cifsfs.c |
49 |
+++ linux-2.6.18-openvz/fs/cifs/cifsfs.c |
50 |
@@ -674,7 +674,7 @@ cifs_get_sb(struct file_system_type *fs_ |
51 |
static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, |
52 |
unsigned long nr_segs, loff_t pos) |
53 |
{ |
54 |
- struct inode *inode = iocb->ki_filp->f_path.dentry->d_inode; |
55 |
+ struct inode *inode = iocb->ki_filp->f_dentry->d_inode; |
56 |
ssize_t written; |
57 |
|
58 |
written = generic_file_aio_write(iocb, iov, nr_segs, pos); |
59 |
@@ -714,9 +714,9 @@ static loff_t cifs_llseek(struct file *f |
60 |
way so we must seek to end on non-oplocked files by |
61 |
setting the revalidate time to zero */ |
62 |
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19) |
63 |
- CIFS_I(file->f_path.dentry->d_inode)->time = 0; |
64 |
+ CIFS_I(file->f_dentry->d_inode)->time = 0; |
65 |
|
66 |
- retval = cifs_revalidate(file->f_path.dentry); |
67 |
+ retval = cifs_revalidate(file->f_dentry); |
68 |
#else |
69 |
if(file->f_dentry->d_inode) |
70 |
CIFS_I(file->f_dentry->d_inode)->time = 0; |
71 |
Index: linux-2.6.18-openvz/fs/cifs/fcntl.c |
72 |
===================================================================== |
73 |
--- linux-2.6.18-openvz.orig/fs/cifs/fcntl.c |
74 |
+++ linux-2.6.18-openvz/fs/cifs/fcntl.c |
75 |
@@ -85,10 +85,10 @@ int cifs_dir_notify(struct file *file, u |
76 |
|
77 |
full_path = build_path_from_dentry(file->f_dentry); |
78 |
#else |
79 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
80 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
81 |
pTcon = cifs_sb->tcon; |
82 |
|
83 |
- full_path = build_path_from_dentry(file->f_path.dentry); |
84 |
+ full_path = build_path_from_dentry(file->f_dentry); |
85 |
#endif |
86 |
|
87 |
if (full_path == NULL) { |
88 |
Index: linux-2.6.18-openvz/fs/cifs/file.c |
89 |
===================================================================== |
90 |
--- linux-2.6.18-openvz.orig/fs/cifs/file.c |
91 |
+++ linux-2.6.18-openvz/fs/cifs/file.c |
92 |
@@ -153,12 +153,12 @@ static inline int cifs_open_inode_helper |
93 |
} else { |
94 |
if (file->f_dentry->d_inode->i_mapping) { |
95 |
#else |
96 |
- if (timespec_equal(&file->f_path.dentry->d_inode->i_mtime, &temp) && |
97 |
- (file->f_path.dentry->d_inode->i_size == |
98 |
+ if (timespec_equal(&file->f_dentry->d_inode->i_mtime, &temp) && |
99 |
+ (file->f_dentry->d_inode->i_size == |
100 |
(loff_t)le64_to_cpu(buf->EndOfFile))) { |
101 |
cFYI(1, ("inode unchanged on server")); |
102 |
} else { |
103 |
- if (file->f_path.dentry->d_inode->i_mapping) { |
104 |
+ if (file->f_dentry->d_inode->i_mapping) { |
105 |
#endif |
106 |
/* BB no need to lock inode until after invalidate |
107 |
since namei code should already have it locked? */ |
108 |
@@ -171,7 +171,7 @@ static inline int cifs_open_inode_helper |
109 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
110 |
invalidate_remote_inode(file->f_dentry->d_inode); |
111 |
#else |
112 |
- invalidate_remote_inode(file->f_path.dentry->d_inode); |
113 |
+ invalidate_remote_inode(file->f_dentry->d_inode); |
114 |
#endif |
115 |
} |
116 |
|
117 |
@@ -180,14 +180,14 @@ client_can_cache: |
118 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
119 |
rc = cifs_get_inode_info_unix(&file->f_dentry->d_inode, |
120 |
#else |
121 |
- rc = cifs_get_inode_info_unix(&file->f_path.dentry->d_inode, |
122 |
+ rc = cifs_get_inode_info_unix(&file->f_dentry->d_inode, |
123 |
#endif |
124 |
full_path, inode->i_sb, xid); |
125 |
|
126 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
127 |
rc = cifs_get_inode_info(&file->f_dentry->d_inode, |
128 |
#else |
129 |
- rc = cifs_get_inode_info(&file->f_path.dentry->d_inode, |
130 |
+ rc = cifs_get_inode_info(&file->f_dentry->d_inode, |
131 |
#endif |
132 |
full_path, buf, inode->i_sb, xid, NULL); |
133 |
|
134 |
@@ -199,7 +199,7 @@ client_can_cache: |
135 |
file->f_dentry->d_inode)); |
136 |
#else |
137 |
cFYI(1, ("Exclusive Oplock granted on inode %p", |
138 |
- file->f_path.dentry->d_inode)); |
139 |
+ file->f_dentry->d_inode)); |
140 |
#endif |
141 |
} else if ((*oplock & 0xF) == OPLOCK_READ) |
142 |
pCifsInode->clientCanCacheRead = true; |
143 |
@@ -232,7 +232,7 @@ int cifs_open(struct inode *inode, struc |
144 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
145 |
pCifsInode = CIFS_I(file->f_dentry->d_inode); |
146 |
#else |
147 |
- pCifsInode = CIFS_I(file->f_path.dentry->d_inode); |
148 |
+ pCifsInode = CIFS_I(file->f_dentry->d_inode); |
149 |
#endif |
150 |
read_lock(&GlobalSMBSeslock); |
151 |
list_for_each(tmp, &pCifsInode->openFileList) { |
152 |
@@ -264,7 +264,7 @@ int cifs_open(struct inode *inode, struc |
153 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
154 |
full_path = build_path_from_dentry(file->f_dentry); |
155 |
#else |
156 |
- full_path = build_path_from_dentry(file->f_path.dentry); |
157 |
+ full_path = build_path_from_dentry(file->f_dentry); |
158 |
#endif |
159 |
if (full_path == NULL) { |
160 |
FreeXid(xid); |
161 |
@@ -353,7 +353,7 @@ int cifs_open(struct inode *inode, struc |
162 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
163 |
pCifsInode = CIFS_I(file->f_dentry->d_inode); |
164 |
#else |
165 |
- pCifsInode = CIFS_I(file->f_path.dentry->d_inode); |
166 |
+ pCifsInode = CIFS_I(file->f_dentry->d_inode); |
167 |
#endif |
168 |
if (pCifsInode) { |
169 |
rc = cifs_open_inode_helper(inode, file, pCifsInode, |
170 |
@@ -453,14 +453,14 @@ static int cifs_reopen_file(struct file |
171 |
and we can never tell if the caller already has the rename_sem */ |
172 |
full_path = build_path_from_dentry(file->f_dentry); |
173 |
#else |
174 |
- if (file->f_path.dentry == NULL) { |
175 |
+ if (file->f_dentry == NULL) { |
176 |
cERROR(1, ("no valid name if dentry freed")); |
177 |
dump_stack(); |
178 |
rc = -EBADF; |
179 |
goto reopen_error_exit; |
180 |
} |
181 |
|
182 |
- inode = file->f_path.dentry->d_inode; |
183 |
+ inode = file->f_dentry->d_inode; |
184 |
if (inode == NULL) { |
185 |
cERROR(1, ("inode not valid")); |
186 |
dump_stack(); |
187 |
@@ -475,7 +475,7 @@ static int cifs_reopen_file(struct file |
188 |
those that already have the rename sem can end up causing writepage |
189 |
to get called and if the server was down that means we end up here, |
190 |
and we can never tell if the caller already has the rename_sem */ |
191 |
- full_path = build_path_from_dentry(file->f_path.dentry); |
192 |
+ full_path = build_path_from_dentry(file->f_dentry); |
193 |
#endif |
194 |
if (full_path == NULL) { |
195 |
rc = -ENOMEM; |
196 |
@@ -543,7 +543,7 @@ reopen_error_exit: |
197 |
file->f_dentry->d_inode)); |
198 |
#else |
199 |
cFYI(1, ("Exclusive Oplock granted on inode %p", |
200 |
- file->f_path.dentry->d_inode)); |
201 |
+ file->f_dentry->d_inode)); |
202 |
#endif |
203 |
} else if ((oplock & 0xF) == OPLOCK_READ) { |
204 |
pCifsInode->clientCanCacheRead = true; |
205 |
@@ -673,7 +673,7 @@ int cifs_closedir(struct inode *inode, s |
206 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
207 |
CIFS_SB(file->f_dentry->d_sb); |
208 |
#else |
209 |
- CIFS_SB(file->f_path.dentry->d_sb); |
210 |
+ CIFS_SB(file->f_dentry->d_sb); |
211 |
#endif |
212 |
|
213 |
pTcon = cifs_sb->tcon; |
214 |
@@ -785,7 +785,7 @@ int cifs_lock(struct file *file, int cmd |
215 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
216 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
217 |
#else |
218 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
219 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
220 |
#endif |
221 |
pTcon = cifs_sb->tcon; |
222 |
|
223 |
@@ -922,14 +922,14 @@ ssize_t cifs_user_write(struct file *fil |
224 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
225 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
226 |
#else |
227 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
228 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
229 |
#endif |
230 |
|
231 |
pTcon = cifs_sb->tcon; |
232 |
|
233 |
/* cFYI(1, |
234 |
(" write %d bytes to offset %lld of %s", write_size, |
235 |
- *poffset, file->f_path.dentry->d_name.name)); */ |
236 |
+ *poffset, file->f_dentry->d_name.name)); */ |
237 |
|
238 |
if (file->private_data == NULL) |
239 |
return -EBADF; |
240 |
@@ -944,7 +944,7 @@ ssize_t cifs_user_write(struct file *fil |
241 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
242 |
if (*poffset > file->f_dentry->d_inode->i_size) |
243 |
#else |
244 |
- if (*poffset > file->f_path.dentry->d_inode->i_size) |
245 |
+ if (*poffset > file->f_dentry->d_inode->i_size) |
246 |
#endif |
247 |
long_op = CIFS_VLONG_OP; /* writes past EOF can be slow */ |
248 |
else |
249 |
@@ -1017,19 +1017,19 @@ ssize_t cifs_user_write(struct file *fil |
250 |
} |
251 |
mark_inode_dirty_sync(file->f_dentry->d_inode); |
252 |
#else |
253 |
- if ((file->f_path.dentry) && (file->f_path.dentry->d_inode)) { |
254 |
- struct inode *inode = file->f_path.dentry->d_inode; |
255 |
+ if ((file->f_dentry) && (file->f_dentry->d_inode)) { |
256 |
+ struct inode *inode = file->f_dentry->d_inode; |
257 |
/* Do not update local mtime - server will set its actual value on write |
258 |
* inode->i_ctime = inode->i_mtime = |
259 |
* current_fs_time(inode->i_sb);*/ |
260 |
if (total_written > 0) { |
261 |
spin_lock(&inode->i_lock); |
262 |
- if (*poffset > file->f_path.dentry->d_inode->i_size) |
263 |
- i_size_write(file->f_path.dentry->d_inode, |
264 |
+ if (*poffset > file->f_dentry->d_inode->i_size) |
265 |
+ i_size_write(file->f_dentry->d_inode, |
266 |
*poffset); |
267 |
spin_unlock(&inode->i_lock); |
268 |
} |
269 |
- mark_inode_dirty_sync(file->f_path.dentry->d_inode); |
270 |
+ mark_inode_dirty_sync(file->f_dentry->d_inode); |
271 |
#endif |
272 |
} |
273 |
FreeXid(xid); |
274 |
@@ -1063,12 +1063,12 @@ static ssize_t cifs_write(struct file *f |
275 |
|
276 |
if (*poffset > file->f_dentry->d_inode->i_size) |
277 |
#else |
278 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
279 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
280 |
|
281 |
pTcon = cifs_sb->tcon; |
282 |
|
283 |
cFYI(1, ("write %zd bytes to offset %lld of %s", write_size, |
284 |
- *poffset, file->f_path.dentry->d_name.name)); |
285 |
+ *poffset, file->f_dentry->d_name.name)); |
286 |
|
287 |
if (file->private_data == NULL) |
288 |
return -EBADF; |
289 |
@@ -1076,7 +1076,7 @@ static ssize_t cifs_write(struct file *f |
290 |
|
291 |
xid = GetXid(); |
292 |
|
293 |
- if (*poffset > file->f_path.dentry->d_inode->i_size) |
294 |
+ if (*poffset > file->f_dentry->d_inode->i_size) |
295 |
#endif |
296 |
long_op = CIFS_VLONG_OP; /* writes past EOF take long time */ |
297 |
else |
298 |
@@ -1167,18 +1167,18 @@ static ssize_t cifs_write(struct file *f |
299 |
} |
300 |
mark_inode_dirty_sync(file->f_dentry->d_inode); |
301 |
#else |
302 |
- if ((file->f_path.dentry) && (file->f_path.dentry->d_inode)) { |
303 |
+ if ((file->f_dentry) && (file->f_dentry->d_inode)) { |
304 |
/*BB We could make this contingent on superblock ATIME flag too */ |
305 |
-/* file->f_path.dentry->d_inode->i_ctime = |
306 |
- file->f_path.dentry->d_inode->i_mtime = CURRENT_TIME;*/ |
307 |
+/* file->f_dentry->d_inode->i_ctime = |
308 |
+ file->f_dentry->d_inode->i_mtime = CURRENT_TIME;*/ |
309 |
if (total_written > 0) { |
310 |
- spin_lock(&file->f_path.dentry->d_inode->i_lock); |
311 |
- if (*poffset > file->f_path.dentry->d_inode->i_size) |
312 |
- i_size_write(file->f_path.dentry->d_inode, |
313 |
+ spin_lock(&file->f_dentry->d_inode->i_lock); |
314 |
+ if (*poffset > file->f_dentry->d_inode->i_size) |
315 |
+ i_size_write(file->f_dentry->d_inode, |
316 |
*poffset); |
317 |
- spin_unlock(&file->f_path.dentry->d_inode->i_lock); |
318 |
+ spin_unlock(&file->f_dentry->d_inode->i_lock); |
319 |
} |
320 |
- mark_inode_dirty_sync(file->f_path.dentry->d_inode); |
321 |
+ mark_inode_dirty_sync(file->f_dentry->d_inode); |
322 |
#endif |
323 |
} |
324 |
FreeXid(xid); |
325 |
@@ -1695,7 +1695,7 @@ int cifs_fsync(struct file *file, struct |
326 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
327 |
struct inode *inode = file->f_dentry->d_inode; |
328 |
#else |
329 |
- struct inode *inode = file->f_path.dentry->d_inode; |
330 |
+ struct inode *inode = file->f_dentry->d_inode; |
331 |
#endif |
332 |
|
333 |
xid = GetXid(); |
334 |
@@ -1753,7 +1753,7 @@ int cifs_flush(struct file *file) |
335 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
336 |
struct inode *inode = file->f_dentry->d_inode; |
337 |
#else |
338 |
- struct inode *inode = file->f_path.dentry->d_inode; |
339 |
+ struct inode *inode = file->f_dentry->d_inode; |
340 |
#endif |
341 |
int rc = 0; |
342 |
|
343 |
@@ -1797,7 +1797,7 @@ ssize_t cifs_user_read(struct file *file |
344 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
345 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
346 |
#else |
347 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
348 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
349 |
#endif |
350 |
pTcon = cifs_sb->tcon; |
351 |
|
352 |
@@ -1881,7 +1881,7 @@ static ssize_t cifs_read(struct file *fi |
353 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
354 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
355 |
#else |
356 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
357 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
358 |
#endif |
359 |
pTcon = cifs_sb->tcon; |
360 |
|
361 |
@@ -1941,7 +1941,7 @@ int cifs_file_mmap(struct file *file, st |
362 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
363 |
struct dentry *dentry = file->f_dentry; |
364 |
#else |
365 |
- struct dentry *dentry = file->f_path.dentry; |
366 |
+ struct dentry *dentry = file->f_dentry; |
367 |
#endif |
368 |
int rc, xid; |
369 |
|
370 |
@@ -2031,7 +2031,7 @@ static int cifs_readpages(struct file *f |
371 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
372 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
373 |
#else |
374 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
375 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
376 |
#endif |
377 |
pTcon = cifs_sb->tcon; |
378 |
|
379 |
@@ -2174,8 +2174,8 @@ static int cifs_readpage_worker(struct f |
380 |
file->f_dentry->d_inode->i_atime = |
381 |
current_fs_time(file->f_dentry->d_inode->i_sb); |
382 |
#else |
383 |
- file->f_path.dentry->d_inode->i_atime = |
384 |
- current_fs_time(file->f_path.dentry->d_inode->i_sb); |
385 |
+ file->f_dentry->d_inode->i_atime = |
386 |
+ current_fs_time(file->f_dentry->d_inode->i_sb); |
387 |
#endif |
388 |
|
389 |
if (PAGE_CACHE_SIZE > rc) |
390 |
Index: linux-2.6.18-openvz/fs/cifs/readdir.c |
391 |
===================================================================== |
392 |
--- linux-2.6.18-openvz.orig/fs/cifs/readdir.c |
393 |
+++ linux-2.6.18-openvz/fs/cifs/readdir.c |
394 |
@@ -82,25 +82,25 @@ static int construct_dentry(struct qstr |
395 |
if (*ptmp_inode == NULL) { |
396 |
*ptmp_inode = new_inode(file->f_dentry->d_sb); |
397 |
#else |
398 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
399 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
400 |
pTcon = cifs_sb->tcon; |
401 |
|
402 |
qstring->hash = full_name_hash(qstring->name, qstring->len); |
403 |
- tmp_dentry = d_lookup(file->f_path.dentry, qstring); |
404 |
+ tmp_dentry = d_lookup(file->f_dentry, qstring); |
405 |
if (tmp_dentry) { |
406 |
cFYI(0, ("existing dentry with inode 0x%p", |
407 |
tmp_dentry->d_inode)); |
408 |
*ptmp_inode = tmp_dentry->d_inode; |
409 |
/* BB overwrite old name? i.e. tmp_dentry->d_name and tmp_dentry->d_name.len??*/ |
410 |
if (*ptmp_inode == NULL) { |
411 |
- *ptmp_inode = new_inode(file->f_path.dentry->d_sb); |
412 |
+ *ptmp_inode = new_inode(file->f_dentry->d_sb); |
413 |
#endif |
414 |
if (*ptmp_inode == NULL) |
415 |
return rc; |
416 |
rc = 1; |
417 |
} |
418 |
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19) |
419 |
- if (file->f_path.dentry->d_sb->s_flags & MS_NOATIME) |
420 |
+ if (file->f_dentry->d_sb->s_flags & MS_NOATIME) |
421 |
#else |
422 |
if (file->f_dentry->d_sb->s_flags & MS_NOATIME) |
423 |
#endif |
424 |
@@ -109,7 +109,7 @@ static int construct_dentry(struct qstr |
425 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
426 |
tmp_dentry = d_alloc(file->f_dentry, qstring); |
427 |
#else |
428 |
- tmp_dentry = d_alloc(file->f_path.dentry, qstring); |
429 |
+ tmp_dentry = d_alloc(file->f_dentry, qstring); |
430 |
#endif |
431 |
if (tmp_dentry == NULL) { |
432 |
cERROR(1, ("Failed allocating dentry")); |
433 |
@@ -119,7 +119,7 @@ static int construct_dentry(struct qstr |
434 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
435 |
*ptmp_inode = new_inode(file->f_dentry->d_sb); |
436 |
#else |
437 |
- *ptmp_inode = new_inode(file->f_path.dentry->d_sb); |
438 |
+ *ptmp_inode = new_inode(file->f_dentry->d_sb); |
439 |
#endif |
440 |
if (pTcon->nocase) |
441 |
tmp_dentry->d_op = &cifs_ci_dentry_ops; |
442 |
@@ -128,7 +128,7 @@ static int construct_dentry(struct qstr |
443 |
if (*ptmp_inode == NULL) |
444 |
return rc; |
445 |
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19) |
446 |
- if (file->f_path.dentry->d_sb->s_flags & MS_NOATIME) |
447 |
+ if (file->f_dentry->d_sb->s_flags & MS_NOATIME) |
448 |
#else |
449 |
if (file->f_dentry->d_sb->s_flags & MS_NOATIME) |
450 |
#endif |
451 |
@@ -514,7 +514,7 @@ static int initiate_cifs_search(const in |
452 |
|
453 |
full_path = build_path_from_dentry(file->f_dentry); |
454 |
#else |
455 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
456 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
457 |
if (cifs_sb == NULL) |
458 |
return -EINVAL; |
459 |
|
460 |
@@ -522,7 +522,7 @@ static int initiate_cifs_search(const in |
461 |
if (pTcon == NULL) |
462 |
return -EINVAL; |
463 |
|
464 |
- full_path = build_path_from_dentry(file->f_path.dentry); |
465 |
+ full_path = build_path_from_dentry(file->f_dentry); |
466 |
#endif |
467 |
|
468 |
if (full_path == NULL) |
469 |
@@ -691,7 +691,7 @@ static int is_dir_changed(struct file *f |
470 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
471 |
struct inode *inode = file->f_dentry->d_inode; |
472 |
#else |
473 |
- struct inode *inode = file->f_path.dentry->d_inode; |
474 |
+ struct inode *inode = file->f_dentry->d_inode; |
475 |
#endif |
476 |
struct cifsInodeInfo *cifsInfo = CIFS_I(inode); |
477 |
|
478 |
@@ -924,7 +924,7 @@ static int cifs_filldir(char *pfindEntry |
479 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
480 |
cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
481 |
#else |
482 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
483 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
484 |
#endif |
485 |
|
486 |
qstring.name = scratch_buf; |
487 |
@@ -1083,7 +1083,7 @@ int cifs_readdir(struct file *file, void |
488 |
if (filldir(direntry, "..", 2, file->f_pos, |
489 |
file->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) { |
490 |
#else |
491 |
- cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); |
492 |
+ cifs_sb = CIFS_SB(file->f_dentry->d_sb); |
493 |
pTcon = cifs_sb->tcon; |
494 |
if (pTcon == NULL) |
495 |
return -EINVAL; |
496 |
@@ -1091,7 +1091,7 @@ int cifs_readdir(struct file *file, void |
497 |
switch ((int) file->f_pos) { |
498 |
case 0: |
499 |
if (filldir(direntry, ".", 1, file->f_pos, |
500 |
- file->f_path.dentry->d_inode->i_ino, DT_DIR) < 0) { |
501 |
+ file->f_dentry->d_inode->i_ino, DT_DIR) < 0) { |
502 |
cERROR(1, ("Filldir for current dir failed")); |
503 |
rc = -ENOMEM; |
504 |
break; |
505 |
@@ -1099,7 +1099,7 @@ int cifs_readdir(struct file *file, void |
506 |
file->f_pos++; |
507 |
case 1: |
508 |
if (filldir(direntry, "..", 2, file->f_pos, |
509 |
- file->f_path.dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) { |
510 |
+ file->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) { |
511 |
#endif |
512 |
cERROR(1, ("Filldir for parent dir failed")); |
513 |
rc = -ENOMEM; |
514 |
Index: linux-2.6.18-openvz/fs/ntfs/aops.c |
515 |
===================================================================== |
516 |
--- linux-2.6.18-openvz.orig/fs/ntfs/aops.c |
517 |
+++ linux-2.6.18-openvz/fs/ntfs/aops.c |
518 |
@@ -415,7 +415,7 @@ retry_readpage: |
519 |
/* Is the page fully outside i_size? (truncate in progress) */ |
520 |
if (unlikely(page->index >= (i_size + PAGE_CACHE_SIZE - 1) >> |
521 |
PAGE_CACHE_SHIFT)) { |
522 |
- zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0); |
523 |
+ zero_user(page, 0, PAGE_CACHE_SIZE); |
524 |
ntfs_debug("Read outside i_size - truncated?"); |
525 |
goto done; |
526 |
} |
527 |
Index: linux-2.6.18-openvz/fs/ntfs/compress.c |
528 |
===================================================================== |
529 |
--- linux-2.6.18-openvz.orig/fs/ntfs/compress.c |
530 |
+++ linux-2.6.18-openvz/fs/ntfs/compress.c |
531 |
@@ -565,7 +565,7 @@ int ntfs_read_compressed_block(struct pa |
532 |
if (xpage >= max_page) { |
533 |
kfree(bhs); |
534 |
kfree(pages); |
535 |
- zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0); |
536 |
+ zero_user(page, 0, PAGE_CACHE_SIZE); |
537 |
ntfs_debug("Compressed read outside i_size - truncated?"); |
538 |
SetPageUptodate(page); |
539 |
unlock_page(page); |
540 |
Index: linux-2.6.18-openvz/samples/tracepoints/tracepoint-probe-sample.c |
541 |
===================================================================== |
542 |
--- linux-2.6.18-openvz.orig/samples/tracepoints/tracepoint-probe-sample.c |
543 |
+++ linux-2.6.18-openvz/samples/tracepoints/tracepoint-probe-sample.c |
544 |
@@ -16,10 +16,10 @@ |
545 |
static void probe_subsys_event(struct inode *inode, struct file *file) |
546 |
{ |
547 |
path_get(&file->f_path); |
548 |
- dget(file->f_path.dentry); |
549 |
+ dget(file->f_dentry); |
550 |
printk(KERN_INFO "Event is encountered with filename %s\n", |
551 |
- file->f_path.dentry->d_name.name); |
552 |
- dput(file->f_path.dentry); |
553 |
+ file->f_dentry->d_name.name); |
554 |
+ dput(file->f_dentry); |
555 |
path_put(&file->f_path); |
556 |
} |
557 |
|
558 |
Index: linux-2.6.18-openvz/sound/oss/dmasound/dmasound_core.c |
559 |
===================================================================== |
560 |
--- linux-2.6.18-openvz.orig/sound/oss/dmasound/dmasound_core.c |
561 |
+++ linux-2.6.18-openvz/sound/oss/dmasound/dmasound_core.c |
562 |
@@ -1051,7 +1051,7 @@ static int sq_release(struct inode *inod |
563 |
|
564 |
if (file->f_mode & FMODE_WRITE) { |
565 |
if (write_sq.busy) |
566 |
- rc = sq_fsync(file, file->f_path.dentry); |
567 |
+ rc = sq_fsync(file, file->f_dentry); |
568 |
|
569 |
sq_reset_output() ; /* make sure dma is stopped and all is quiet */ |
570 |
write_sq_release_buffers(); |
571 |
@@ -1217,7 +1217,7 @@ static int sq_ioctl(struct inode *inode, |
572 |
if ((file->f_mode & FMODE_READ) && dmasound.mach.record) |
573 |
sq_reset_input() ; |
574 |
if (file->f_mode & FMODE_WRITE) { |
575 |
- result = sq_fsync(file, file->f_path.dentry); |
576 |
+ result = sq_fsync(file, file->f_dentry); |
577 |
sq_reset_output() ; |
578 |
} |
579 |
/* if we are the shared resource owner then release them */ |
580 |
Index: linux-2.6.18-openvz/sound/oss/msnd_pinnacle.c |
581 |
===================================================================== |
582 |
--- linux-2.6.18-openvz.orig/sound/oss/msnd_pinnacle.c |
583 |
+++ linux-2.6.18-openvz/sound/oss/msnd_pinnacle.c |
584 |
@@ -1007,7 +1007,7 @@ static int dsp_write(const char __user * |
585 |
|
586 |
static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_t *off) |
587 |
{ |
588 |
- int minor = iminor(file->f_path.dentry->d_inode); |
589 |
+ int minor = iminor(file->f_dentry->d_inode); |
590 |
if (minor == dev.dsp_minor) |
591 |
return dsp_read(buf, count); |
592 |
else |
593 |
@@ -1016,7 +1016,7 @@ static ssize_t dev_read(struct file *fil |
594 |
|
595 |
static ssize_t dev_write(struct file *file, const char __user *buf, size_t count, loff_t *off) |
596 |
{ |
597 |
- int minor = iminor(file->f_path.dentry->d_inode); |
598 |
+ int minor = iminor(file->f_dentry->d_inode); |
599 |
if (minor == dev.dsp_minor) |
600 |
return dsp_write(buf, count); |
601 |
else |
602 |
Index: linux-2.6.18-openvz/sound/oss/soundcard.c |
603 |
===================================================================== |
604 |
--- linux-2.6.18-openvz.orig/sound/oss/soundcard.c |
605 |
+++ linux-2.6.18-openvz/sound/oss/soundcard.c |
606 |
@@ -142,7 +142,7 @@ static int get_mixer_levels(void __user |
607 |
|
608 |
static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
609 |
{ |
610 |
- int dev = iminor(file->f_path.dentry->d_inode); |
611 |
+ int dev = iminor(file->f_dentry->d_inode); |
612 |
int ret = -EINVAL; |
613 |
|
614 |
/* |
615 |
@@ -175,7 +175,7 @@ static ssize_t sound_read(struct file *f |
616 |
|
617 |
static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) |
618 |
{ |
619 |
- int dev = iminor(file->f_path.dentry->d_inode); |
620 |
+ int dev = iminor(file->f_dentry->d_inode); |
621 |
int ret = -EINVAL; |
622 |
|
623 |
lock_kernel(); |
624 |
@@ -394,7 +394,7 @@ static int sound_ioctl(struct inode *ino |
625 |
|
626 |
static unsigned int sound_poll(struct file *file, poll_table * wait) |
627 |
{ |
628 |
- struct inode *inode = file->f_path.dentry->d_inode; |
629 |
+ struct inode *inode = file->f_dentry->d_inode; |
630 |
int dev = iminor(inode); |
631 |
|
632 |
DEB(printk("sound_poll(dev=%d)\n", dev)); |
633 |
@@ -419,7 +419,7 @@ static int sound_mmap(struct file *file, |
634 |
int dev_class; |
635 |
unsigned long size; |
636 |
struct dma_buffparms *dmap = NULL; |
637 |
- int dev = iminor(file->f_path.dentry->d_inode); |
638 |
+ int dev = iminor(file->f_dentry->d_inode); |
639 |
|
640 |
dev_class = dev & 0x0f; |
641 |
dev >>= 4; |
642 |
Index: linux-2.6.18-openvz/sound/pcmcia/Kconfig |
643 |
===================================================================== |
644 |
--- linux-2.6.18-openvz.orig/sound/pcmcia/Kconfig |
645 |
+++ linux-2.6.18-openvz/sound/pcmcia/Kconfig |
646 |
@@ -16,7 +16,7 @@ config SND_VXPOCKET |
647 |
|
648 |
config SND_PDAUDIOCF |
649 |
tristate "Sound Core PDAudioCF" |
650 |
- depends on SND && PCMCIA |
651 |
+ depends on BROKEN && SND && PCMCIA |
652 |
select SND_PCM |
653 |
help |
654 |
Say Y here to include support for Sound Core PDAudioCF |
655 |
Index: linux-2.6.18-openvz/sound/sound_firmware.c |
656 |
===================================================================== |
657 |
--- linux-2.6.18-openvz.orig/sound/sound_firmware.c |
658 |
+++ linux-2.6.18-openvz/sound/sound_firmware.c |
659 |
@@ -19,7 +19,7 @@ static int do_mod_firmware_load(const ch |
660 |
printk(KERN_INFO "Unable to load '%s'.\n", fn); |
661 |
return 0; |
662 |
} |
663 |
- l = filp->f_path.dentry->d_inode->i_size; |
664 |
+ l = filp->f_dentry->d_inode->i_size; |
665 |
if (l <= 0 || l > 131072) |
666 |
{ |
667 |
printk(KERN_INFO "Invalid firmware '%s'\n", fn); |