dir.c (a1922ed661ab2c1637d0b10cde933bd9cd33d965) dir.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54)
1/*
2 * dir.c
3 *
4 * Copyright (c) 1999 Al Smith
5 */
6
7#include <linux/buffer_head.h>
8#include "efs.h"

--- 6 unchanged lines hidden (view full) ---

15 .readdir = efs_readdir,
16};
17
18const struct inode_operations efs_dir_inode_operations = {
19 .lookup = efs_lookup,
20};
21
22static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
1/*
2 * dir.c
3 *
4 * Copyright (c) 1999 Al Smith
5 */
6
7#include <linux/buffer_head.h>
8#include "efs.h"

--- 6 unchanged lines hidden (view full) ---

15 .readdir = efs_readdir,
16};
17
18const struct inode_operations efs_dir_inode_operations = {
19 .lookup = efs_lookup,
20};
21
22static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
23 struct inode *inode = filp->f_path.dentry->d_inode;
23 struct inode *inode = file_inode(filp);
24 struct buffer_head *bh;
25
26 struct efs_dir *dirblock;
27 struct efs_dentry *dirslot;
28 efs_ino_t inodenum;
29 efs_block_t block;
30 int slot, namelen;
31 char *nameptr;

--- 79 unchanged lines hidden ---
24 struct buffer_head *bh;
25
26 struct efs_dir *dirblock;
27 struct efs_dentry *dirslot;
28 efs_ino_t inodenum;
29 efs_block_t block;
30 int slot, namelen;
31 char *nameptr;

--- 79 unchanged lines hidden ---