diff options
author | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-07-13 09:57:38 -0400 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-07-13 09:57:38 -0400 |
commit | f7f24758ac98a506770bc5910d33567610fa3403 (patch) | |
tree | ff7fad3d01bf9dc2e2e54b908f9fca4891e1ee72 /fs/hppfs/hppfs_kern.c | |
parent | b38a3ab3d1bb0dc3288f73903d4dc4672b5cd2d0 (diff) | |
parent | c32511e2718618f0b53479eb36e07439aa363a74 (diff) |
Merge with /home/shaggy/git/linus-clean/
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/hppfs/hppfs_kern.c')
-rw-r--r-- | fs/hppfs/hppfs_kern.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/hppfs/hppfs_kern.c b/fs/hppfs/hppfs_kern.c index f8e0cbd0cb60..6f553e17c375 100644 --- a/fs/hppfs/hppfs_kern.c +++ b/fs/hppfs/hppfs_kern.c | |||
@@ -4,6 +4,7 @@ | |||
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include <linux/fs.h> | 6 | #include <linux/fs.h> |
7 | #include <linux/file.h> | ||
7 | #include <linux/module.h> | 8 | #include <linux/module.h> |
8 | #include <linux/init.h> | 9 | #include <linux/init.h> |
9 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
@@ -491,7 +492,7 @@ static int hppfs_open(struct inode *inode, struct file *file) | |||
491 | fd = open_host_sock(host_file, &filter); | 492 | fd = open_host_sock(host_file, &filter); |
492 | if(fd > 0){ | 493 | if(fd > 0){ |
493 | data->contents = hppfs_get_data(fd, filter, | 494 | data->contents = hppfs_get_data(fd, filter, |
494 | &data->proc_file, | 495 | data->proc_file, |
495 | file, &data->len); | 496 | file, &data->len); |
496 | if(!IS_ERR(data->contents)) | 497 | if(!IS_ERR(data->contents)) |
497 | data->host_fd = fd; | 498 | data->host_fd = fd; |
@@ -543,7 +544,7 @@ static int hppfs_dir_open(struct inode *inode, struct file *file) | |||
543 | static loff_t hppfs_llseek(struct file *file, loff_t off, int where) | 544 | static loff_t hppfs_llseek(struct file *file, loff_t off, int where) |
544 | { | 545 | { |
545 | struct hppfs_private *data = file->private_data; | 546 | struct hppfs_private *data = file->private_data; |
546 | struct file *proc_file = &data->proc_file; | 547 | struct file *proc_file = data->proc_file; |
547 | loff_t (*llseek)(struct file *, loff_t, int); | 548 | loff_t (*llseek)(struct file *, loff_t, int); |
548 | loff_t ret; | 549 | loff_t ret; |
549 | 550 | ||
@@ -586,7 +587,7 @@ static int hppfs_filldir(void *d, const char *name, int size, | |||
586 | static int hppfs_readdir(struct file *file, void *ent, filldir_t filldir) | 587 | static int hppfs_readdir(struct file *file, void *ent, filldir_t filldir) |
587 | { | 588 | { |
588 | struct hppfs_private *data = file->private_data; | 589 | struct hppfs_private *data = file->private_data; |
589 | struct file *proc_file = &data->proc_file; | 590 | struct file *proc_file = data->proc_file; |
590 | int (*readdir)(struct file *, void *, filldir_t); | 591 | int (*readdir)(struct file *, void *, filldir_t); |
591 | struct hppfs_dirent dirent = ((struct hppfs_dirent) | 592 | struct hppfs_dirent dirent = ((struct hppfs_dirent) |
592 | { .vfs_dirent = ent, | 593 | { .vfs_dirent = ent, |