On Thu, Jan 25, 2024 at 11:59:36AM +0000, fdmanana@xxxxxxxxxx wrote: > From: Filipe Manana <fdmanana@xxxxxxxx> > > commit 357950361cbc6d54fb68ed878265c647384684ae upstream. > > When opening a directory for reading it, we set the last index where we > stop iteration to the value in struct btrfs_inode::index_cnt. That value > does not match the index of the most recently added directory entry but > it's instead the index number that will be assigned the next directory > entry. [..] > CC: stable@xxxxxxxxxxxxxxx # 6.5+ > Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx> > Signed-off-by: David Sterba <dsterba@xxxxxxxx> Based on https://lore.kernel.org/stable/20240126185534.GA2668448@lxhi-087: Reviewed-by: Eugeniu Rosca <eugeniu.rosca@xxxxxxxxx>