diff options
-rw-r--r-- | fs/btrfs/dir-item.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 2b00dd746118..41cb9196eaa8 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c @@ -550,14 +550,6 @@ bool btrfs_is_name_len_valid(struct extent_buffer *leaf, int slot, goto out; } - /* - * This may be the last item in the slot - * Or same type item(s) is left between read_end and item_end - */ - if (item_end != read_end && item_end - read_end < size) { - ret = false; - goto out; - } out: if (!ret) btrfs_crit(fs_info, "invalid dir item name len: %u", |