wok-current view linux/stuff/aufs2-base.patch @ rev 13535

gnome-vfs: repaired (from unwork state); added gnome-vfs-i18n (optional lang files)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 23 11:28:07 2012 +0200 (2012-10-23)
parents 34e3298168a8
children
line source
1 aufs2.1 base patch for linux-2.6.
3 diff --git a/fs/namei.c b/fs/namei.c
4 index 5c867dd..95978ec 100644
5 --- a/fs/namei.c
6 +++ b/fs/namei.c
7 @@ -1692,7 +1692,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
8 * needs parent already locked. Doesn't follow mounts.
9 * SMP-safe.
10 */
11 -static struct dentry *lookup_hash(struct nameidata *nd)
12 +struct dentry *lookup_hash(struct nameidata *nd)
13 {
14 return __lookup_hash(&nd->last, nd->path.dentry, nd);
15 }
16 diff --git a/fs/splice.c b/fs/splice.c
17 index aa866d3..19afec6 100644
18 --- a/fs/splice.c
19 +++ b/fs/splice.c
20 @@ -1085,8 +1085,8 @@ EXPORT_SYMBOL(generic_splice_sendpage);
21 /*
22 * Attempt to initiate a splice from pipe to file.
23 */
24 -static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
25 - loff_t *ppos, size_t len, unsigned int flags)
26 +long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
27 + loff_t *ppos, size_t len, unsigned int flags)
28 {
29 ssize_t (*splice_write)(struct pipe_inode_info *, struct file *,
30 loff_t *, size_t, unsigned int);
31 @@ -1113,9 +1113,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
32 /*
33 * Attempt to initiate a splice from a file to a pipe.
34 */
35 -static long do_splice_to(struct file *in, loff_t *ppos,
36 - struct pipe_inode_info *pipe, size_t len,
37 - unsigned int flags)
38 +long do_splice_to(struct file *in, loff_t *ppos,
39 + struct pipe_inode_info *pipe, size_t len,
40 + unsigned int flags)
41 {
42 ssize_t (*splice_read)(struct file *, loff_t *,
43 struct pipe_inode_info *, size_t, unsigned int);
44 diff --git a/include/linux/namei.h b/include/linux/namei.h
45 index eba45ea..21ed6c9 100644
46 --- a/include/linux/namei.h
47 +++ b/include/linux/namei.h
48 @@ -82,6 +82,7 @@ extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
49 extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry *dentry,
50 int (*open)(struct inode *, struct file *));
52 +extern struct dentry *lookup_hash(struct nameidata *nd);
53 extern struct dentry *lookup_one_len(const char *, struct dentry *, int);
55 extern int follow_down_one(struct path *);
56 diff --git a/include/linux/splice.h b/include/linux/splice.h
57 index 997c3b4..be9a153 100644
58 --- a/include/linux/splice.h
59 +++ b/include/linux/splice.h
60 @@ -89,4 +89,10 @@ extern int splice_grow_spd(struct pipe_inode_info *, struct splice_pipe_desc *);
61 extern void splice_shrink_spd(struct pipe_inode_info *,
62 struct splice_pipe_desc *);
64 +extern long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
65 + loff_t *ppos, size_t len, unsigned int flags);
66 +extern long do_splice_to(struct file *in, loff_t *ppos,
67 + struct pipe_inode_info *pipe, size_t len,
68 + unsigned int flags);
69 +
70 #endif