patch-2.1.55 linux/fs/isofs/dir.c
Next file: linux/fs/minix/bitmap.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Sep 7 14:00:24 1997
- Orig file:
v2.1.54/linux/fs/isofs/dir.c
- Orig date:
Thu Jul 17 10:06:07 1997
diff -u --recursive --new-file v2.1.54/linux/fs/isofs/dir.c linux/fs/isofs/dir.c
@@ -23,7 +23,7 @@
#include <asm/uaccess.h>
-static int isofs_readdir(struct inode *, struct file *, void *, filldir_t);
+static int isofs_readdir(struct file *, void *, filldir_t);
static struct file_operations isofs_dir_operations =
{
@@ -241,12 +241,13 @@
* handling split directory entries.. The real work is done by
* "do_isofs_readdir()".
*/
-static int isofs_readdir(struct inode *inode, struct file *filp,
+static int isofs_readdir(struct file *filp,
void *dirent, filldir_t filldir)
{
int result;
char * tmpname;
struct iso_directory_record * tmpde;
+ struct inode *inode = filp->f_dentry->d_inode;
if (!inode || !S_ISDIR(inode->i_mode))
return -EBADF;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov