aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-04 21:22:22 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-04 21:22:22 -0400
commitbae45de03c4d54a9893dedf8a015beb2608b896a (patch)
tree14e8a63492b1ff09fa1851bb3964638331303b99 /fs/btrfs/super.c
parentb1a4d96509a78ad234d94e0b914b289c60d2969d (diff)
Btrfs: add dir inode index
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 822243650ae9..4b042460e875 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -447,7 +447,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
447 mutex_lock(&root->fs_info->fs_mutex); 447 mutex_lock(&root->fs_info->fs_mutex);
448 key.objectid = inode->i_ino; 448 key.objectid = inode->i_ino;
449 key.flags = 0; 449 key.flags = 0;
450 btrfs_set_key_type(&key, BTRFS_DIR_ITEM_KEY); 450 btrfs_set_key_type(&key, BTRFS_DIR_INDEX_KEY);
451 key.offset = filp->f_pos; 451 key.offset = filp->f_pos;
452 path = btrfs_alloc_path(); 452 path = btrfs_alloc_path();
453 btrfs_init_path(path); 453 btrfs_init_path(path);
@@ -477,7 +477,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
477 item = leaf->items + slot; 477 item = leaf->items + slot;
478 if (btrfs_disk_key_objectid(&item->key) != key.objectid) 478 if (btrfs_disk_key_objectid(&item->key) != key.objectid)
479 break; 479 break;
480 if (btrfs_disk_key_type(&item->key) != BTRFS_DIR_ITEM_KEY) 480 if (btrfs_disk_key_type(&item->key) != BTRFS_DIR_INDEX_KEY)
481 continue; 481 continue;
482 if (btrfs_disk_key_offset(&item->key) < filp->f_pos) 482 if (btrfs_disk_key_offset(&item->key) < filp->f_pos)
483 continue; 483 continue;