summaryrefslogtreecommitdiffstats
path: root/fs/efs/dir.c
diff options
context:
space:
mode:
authorAl Smith <Al.Smith@aeschi.ch.eu.org>1999-04-17 11:01:25 +0000
committerAl Smith <Al.Smith@aeschi.ch.eu.org>1999-04-17 11:01:25 +0000
commitf863fa44863c5443c0b34e30bfb662358f27dd22 (patch)
tree0baaf87b2a937fc3682341745d0a360590487496 /fs/efs/dir.c
parentf76c076c6fbb4540c78a949abd103b4bdd2c7b19 (diff)
Minor bug fixes.
Diffstat (limited to 'fs/efs/dir.c')
-rw-r--r--fs/efs/dir.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/efs/dir.c b/fs/efs/dir.c
index 88e181690..20d3c853e 100644
--- a/fs/efs/dir.c
+++ b/fs/efs/dir.c
@@ -48,7 +48,6 @@ struct inode_operations efs_dir_inode_operations = {
static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
struct inode *inode = filp->f_dentry->d_inode;
- struct efs_inode_info *ini = INODE_INFO(inode);
struct buffer_head *bh;
struct efs_dir *dirblock;
@@ -61,9 +60,6 @@ static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
if (!inode || !S_ISDIR(inode->i_mode))
return -EBADF;
- if (ini->numextents != 1)
- printk("EFS: WARNING: readdir(): more than one extent\n");
-
if (inode->i_size & (EFS_DIRBSIZE-1))
printk("EFS: WARNING: readdir(): directory size not a multiple of EFS_DIRBSIZE\n");
@@ -104,7 +100,7 @@ static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
nameptr = dirslot->name;
#ifdef DEBUG
- printk("EFS: readdir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots, inodenum, nameptr, namelen);
+ printk("EFS: readdir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1, inodenum, nameptr, namelen);
#endif
if (namelen > 0) {
/* found the next entry */