projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] knfsd: Break the hard linkage from svc_expkey to svc_export
[linux-2.6-microblaze.git]
/
fs
/
pipe.c
diff --git
a/fs/pipe.c
b/fs/pipe.c
index
d722579
..
4384c92
100644
(file)
--- a/
fs/pipe.c
+++ b/
fs/pipe.c
@@
-605,7
+605,7
@@
struct file_operations rdwr_fifo_fops = {
.fasync = pipe_rdwr_fasync,
};
.fasync = pipe_rdwr_fasync,
};
-struct file_operations read_pipe_fops = {
+st
atic st
ruct file_operations read_pipe_fops = {
.llseek = no_llseek,
.read = pipe_read,
.readv = pipe_readv,
.llseek = no_llseek,
.read = pipe_read,
.readv = pipe_readv,
@@
-617,7
+617,7
@@
struct file_operations read_pipe_fops = {
.fasync = pipe_read_fasync,
};
.fasync = pipe_read_fasync,
};
-struct file_operations write_pipe_fops = {
+st
atic st
ruct file_operations write_pipe_fops = {
.llseek = no_llseek,
.read = bad_pipe_r,
.write = pipe_write,
.llseek = no_llseek,
.read = bad_pipe_r,
.write = pipe_write,
@@
-629,7
+629,7
@@
struct file_operations write_pipe_fops = {
.fasync = pipe_write_fasync,
};
.fasync = pipe_write_fasync,
};
-struct file_operations rdwr_pipe_fops = {
+st
atic st
ruct file_operations rdwr_pipe_fops = {
.llseek = no_llseek,
.read = pipe_read,
.readv = pipe_readv,
.llseek = no_llseek,
.read = pipe_read,
.readv = pipe_readv,
@@
-662,10
+662,9
@@
struct inode* pipe_new(struct inode* inode)
{
struct pipe_inode_info *info;
{
struct pipe_inode_info *info;
- info = k
m
alloc(sizeof(struct pipe_inode_info), GFP_KERNEL);
+ info = k
z
alloc(sizeof(struct pipe_inode_info), GFP_KERNEL);
if (!info)
goto fail_page;
if (!info)
goto fail_page;
- memset(info, 0, sizeof(*info));
inode->i_pipe = info;
init_waitqueue_head(PIPE_WAIT(*inode));
inode->i_pipe = info;
init_waitqueue_head(PIPE_WAIT(*inode));
@@
-676,7
+675,7
@@
fail_page:
return NULL;
}
return NULL;
}
-static struct vfsmount *pipe_mnt;
+static struct vfsmount *pipe_mnt
__read_mostly
;
static int pipefs_delete_dentry(struct dentry *dentry)
{
return 1;
static int pipefs_delete_dentry(struct dentry *dentry)
{
return 1;