diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 4fd2b168b2c4..d4ee78046b86 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -482,6 +482,11 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
482 | item = leaf->items + slot; | 482 | item = leaf->items + slot; |
483 | if (btrfs_disk_key_objectid(&item->key) != key.objectid) | 483 | if (btrfs_disk_key_objectid(&item->key) != key.objectid) |
484 | break; | 484 | break; |
485 | if (btrfs_disk_key_offset(&item->key) > | ||
486 | root->fs_info->highest_inode) { | ||
487 | printk("stopping at highest inode %Lu\n", root->fs_info->highest_inode); | ||
488 | break; | ||
489 | } | ||
485 | if (btrfs_disk_key_type(&item->key) != BTRFS_DIR_INDEX_KEY) | 490 | if (btrfs_disk_key_type(&item->key) != BTRFS_DIR_INDEX_KEY) |
486 | continue; | 491 | continue; |
487 | if (btrfs_disk_key_offset(&item->key) < filp->f_pos) | 492 | if (btrfs_disk_key_offset(&item->key) < filp->f_pos) |